deployment

package
v0.0.0-...-beceb34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL