package
1.5.1
Repository: https://github.com/csrwng/origin.git
Documentation: pkg.go.dev

# Functions

ActiveDeployment returns the latest complete deployment, or nil if there is no such deployment.
AnyDeployerPodSelector returns a label Selector which can be used to find all deployer pods across all deployments, including hook and custom deployer pods.
CanTransitionPhase returns whether it is allowed to go from the current to the next phase.
ConfigSelector returns a label Selector which can be used to find all deployments for a DeploymentConfig.
DecodeDeploymentConfig decodes a DeploymentConfig from controller using codec.
No description provided by the author
DeployerPodNameForDeployment returns the name of a pod for a given deployment.
DeployerPodSelector returns a label Selector which can be used to find all deployer pods associated with a deployment with name.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DeploymentNameForConfigVersion returns the name of the version-th deployment for the config that has the provided name.
No description provided by the author
DeploymentsForCleanup determines which deployments for a configuration are relevant for the revision history limit quota.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EncodeDeploymentConfig encodes config as a string using codec.
GetAvailablePods returns all the available pods from the provided pod list.
GetDeploymentCondition returns the condition with the provided type.
GetReadyReplicaCountForReplicationControllers returns the number of ready pods corresponding to the given replication controller.
GetReplicaCountForDeployments returns the sum of all replicas for the given deployments.
GetStatusReplicaCountForDeployments returns the sum of the replicas reported in the status of the given deployments.
HasChangeTrigger returns whether the provided deployment configuration has a config change trigger or not.
HasImageChangeTrigger returns whether the provided deployment configuration has an image change trigger or not.
HasSynced checks if the provided deployment config has been noticed by the deployment config controller.
IsCompleteDeployment returns true if the passed deployment failed.
No description provided by the author
IsFailedDeployment returns true if the passed deployment failed.
IsOwnedByConfig checks whether the provided replication controller is part of a deployment configuration.
IsProgressing expects a state deployment config and its updated status in order to determine if there is any progress.
IsRollingConfig returns true if the strategy type is a rolling update.
IsTerminatedDeployment returns true if the passed deployment has terminated (either complete or failed).
LabelForDeployment builds a string identifier for a Deployment.
LabelForDeploymentConfig builds a string identifier for a DeploymentConfig.
LatestDeploymentInfo returns info about the latest deployment for a config, or nil if there is no latest deployment.
LatestDeploymentNameForConfig returns a stable identifier for config based on its version.
MakeDeployment creates a deployment represented as a ReplicationController and based on the given DeploymentConfig.
MaxSurge returns the maximum surge pods a rolling deployment config can take.
MaxUnavailable returns the maximum unavailable pods a rolling deployment config can take.
NewDeploymentCondition creates a new deployment condition.
RemoveDeploymentCondition removes the deployment condition with the provided type.
SetDeploymentCondition updates the deployment to include the provided condition.
WaitForRunningDeployerPod waits a given period of time until the deployer pod for given replication controller is not running.

# Constants

DeployerPodSuffix is the suffix added to pods created from a deployment.
FailedRcCreateReason is added in a deployment config when it cannot create a new replication controller.
NewRcAvailableReason is added in a deployment config when its newest replication controller is made available ie.
NewReplicationControllerReason is added in a deployment config when it creates a new replication controller.
PausedDeployReason is added in a deployment config when it is paused.
Reasons for deployment config conditions: ReplicationControllerUpdatedReason is added in a deployment config when one of its replication controllers is updated as part of the rollout process.
ResumedDeployReason is added in a deployment config when it is resumed.
TimedOutReason is added in a deployment config when its newest replication controller fails to show any progress within the given deadline (progressDeadlineSeconds).

# Type aliases

ByLatestVersionAsc sorts deployments by LatestVersion ascending.
ByLatestVersionDesc sorts deployments by LatestVersion descending.
ByMostRecent sorts deployments by most recently created.