Optional
configManager: ConfigManagerOptional
logger: SoloLoggerOptional
Readonly
loggerStatic
PodCopy a file from a container
It overwrites any existing file at the destination directory
source file path in the container
destination directory in the local
Copy a file into a container
It overwrites any existing file inside the container at the destination directory
source file path in the local
destination directory in the container
Optional
filter: TarCreateFilter = undefinedthe filter to pass to tar to keep or skip files or directories
a Promise that performs the copy operation
creates a new Kubernetes secret with the provided attributes
the name of the new secret
the namespace to store the secret
the secret type
the secret, any values of a key:value pair must be base64 encoded
the label to use for future label selector queries
if we should first run delete in the case that there the secret exists from a previous install
whether the secret was created successfully
Delete a persistent volume claim
the name of the persistent volume claim to delete
the namespace of the persistent volume claim to delete
true if the persistent volume claim was deleted
Invoke sh command within a container and return the console output as string
sh commands as an array to be run within the containerName (e.g 'ls -la /opt/hgcapp')
console output as string
retrieve the secret of the given namespace and label selector, if there is more than one, it returns the first
the namespace of the secret to search for
the label selector used to fetch the Kubernetes secret
a custom secret object with the relevant attributes, the values of the data key:value pair objects must be base64 decoded
Check if a filepath exists in the container
path inside the container
Optional
filters: object = {}an object with metadata fields and value
Get a pod by name and namespace, will check every 1 second until the pod is no longer found. Can throw a SoloError if there is an error while deleting the pod.
the name of the pod
the namespace of the pod
List files and directories in a container
It runs ls -la on the specified path and returns a list of object containing the entries. For example: [{ directory: false, owner: hedera, group: hedera, size: 121, modifiedAt: Jan 15 13:50 name: config.txt }]
path inside the container
a promise that returns array of directory entries, custom object
Get a list of persistent volume claim names for the given namespace
the namespace of the persistent volume claims to return
Optional
labels: string[] = []labels
list of persistent volume claim names
Port forward a port from a pod to localhost
This simple server just forwards traffic from itself to a service running in kubernetes -> localhost:localPort -> port-forward-tunnel -> kubernetes-pod:targetPort
Stop the port forwarder server
an instance of server returned by portForward method
Optional
maxAttempts: number = 20the maximum number of attempts to check if the server is stopped
Optional
timeout: number = 500the delay between checks in milliseconds
Check pods for conditions
a map of conditions and values
Optional
labels: string[] = []pod labels
Optional
podCount: number = 1number of pod expected
Optional
maxAttempts: number = 10maximum attempts to check
Optional
delay: number = 500delay between checks in milliseconds
Check if pod is ready
Optional
labels: string[] = []pod labels
Optional
podCount: number = 1number of pod expected
Optional
maxAttempts: number = 10maximum attempts to check
Optional
delay: number = 500delay between checks in milliseconds
Optional
podItemPredicate: (items: V1Pod) => boolean
A kubernetes API wrapper class providing custom functionalities required by solo
Note: Take care if the same instance is used for parallel execution, as the behaviour may be unpredictable. For parallel execution, create separate instances by invoking clone()