Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MissingDeployment ¶
type MissingDeployment struct { Name string ReadyReplicasError error MinimumlReplicasAvailableError error }
func HasDeploymentsInNamespace ¶
func HasDeploymentsInNamespace(client kubernetes.Interface, namespace string, expectedDeploymentNames []string) ( has bool, missingDeployments []MissingDeployment, err error)
HasDeploymentsInNamespace returns false and the list of deployment if some deployments are missing in the namespace. It checks also if the number of replicas are meet It returns an error if an error occurs while retreiving a deployment client: the client to use namespace: The namespace to search in expectedDeploymentNames: The deployment names to search
Click to show internal directories.
Click to hide internal directories.