package
0.0.0-20191024030528-a481964b876e
Repository: https://github.com/divinerapier/learn-kubernetes.git
Documentation: pkg.go.dev

# Functions

CheckDeploymentRevisionAndImage checks if the input deployment's and its new replica set's revision and image are as expected.
CreateDeployment creates a deployment.
GetPodsForDeployment gets pods for the given deployment.
NewDeployment returns a deployment spec with the specified argument.
UpdateDeploymentWithRetries updates the specified deployment with retries.
WaitForDeploymentComplete waits for the deployment to complete, and don't check if rolling update strategy is broken.
WaitForDeploymentCompleteAndCheckRolling waits for the deployment to complete, and check rolling update strategy isn't broken at any times.
WaitForDeploymentOldRSsNum waits for the deployment to clean up old rcs.
WaitForDeploymentRevision waits for becoming the target revision of a delopyment.
WaitForDeploymentRevisionAndImage waits for the deployment's and its new RS's revision and container image to match the given revision and image.
WaitForDeploymentRollbackCleared waits for given deployment either started rolling back or doesn't need to rollback.
WaitForDeploymentUpdatedReplicasGTE waits for given deployment to be observed by the controller and has at least a number of updatedReplicas.
WaitForDeploymentWithCondition waits for the specified deployment condition.
WaitForObservedDeployment waits for the specified deployment generation.
WatchRecreateDeployment watches Recreate deployments and ensures no new pods will run at the same time with old pods.