# Functions
Create will create a POD
Args: - Client struct from client module - Instance struct from pod module
Return: - error or nil.
CreateWaitRunningState will create a POD and wait the pod be in running state
Args: - Client struct from client module - Instance struct from pod module
Return: - error or nil.
ExecCmd executes a command inside a POD
Args: Client - struct from client module podName - The pod name cmd - Array (string)
Returns: stdout, stderr as bytes.Buffer or error.
Exists will check if the pod exists or not
Args: - Pointer to a Client struct
Returns: string (namespace name) OR error type
.
FindPodsWithNameContains will find pods with substring provided
Args: - Client struct from client module - substring to be found - namespace
Return: - error or nil.
GetIP will return the pod IP address
Args:
- Client struct from client module - pod name - namespace
Returns: - the IP as string or error.
GetLastTimeConditionHappened Get the last time a condition happened in a pod
Conditions:
PodScheduled: the Pod has been scheduled to a node.
WaitForPodInRunningState will execute waitForPodRunning
Args: - Pointer to a client struct - podname - namespace
Returns: nil or error.