package
4.1.0+incompatible
Repository: https://github.com/openshift/origin.git
Documentation: pkg.go.dev
# Functions
ActiveDeployment returns the latest complete deployment, or nil if there is no such deployment.
AnnotationFor returns the annotation with key for obj.
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 annotation codec.
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.
DeploymentDesiredReplicas returns number of desired replica for the given replication controller.
DeploymentNameForConfigVersion returns the name of the version-th deployment for the config that has the provided name.
DeploymentsForCleanup determines which deployments for a configuration are relevant for the revision history limit quota.
GetAvailableReplicaCountForReplicationControllers returns the number of available pods corresponding to the given replication controller.
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.
GetTimeoutSecondsForStrategy returns the timeout in seconds defined in the deployment config strategy.
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.
HasLastTriggeredImage returns whether all image change triggers in provided deployment configuration has the lastTriggerImage field set (iow.
HasLatestPodTemplate checks for differences between current deployment config template and deployment config template encoded in the latest replication controller.
HasSynced checks if the provided deployment config has been noticed by the deployment config controller.
HasTrigger returns whether the provided deployment configuration has any trigger defined or not.
HasUpdatedImages indicates if the deployment configuration images were updated.
IsCompleteDeployment returns true if the passed deployment is in state complete.
IsFailedDeployment returns true if the passed deployment failed.
IsInitialDeployment returns whether the deployment configuration is the first version of this configuration.
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 deployment config.
LatestDeploymentNameForConfigAndVersion 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.
RecordConfigChangeCause sets a deployment config cause for config change.
RecordImageChangeCauses sets a deployment config cause for image change.
RemoveDeploymentCondition removes the deployment condition with the provided type.
ResolveFenceposts is copy from k8s deployment_utils to avoid unnecessary imports.
RolloutExceededTimeoutSeconds returns true if the current deployment exceeded the timeoutSeconds defined for its strategy.
SetDeploymentCondition updates the deployment to include the provided condition.
# Constants
CancelledRolloutReason is added in a deployment config when its newest rollout was interrupted by cancellation.
DefaultRecreateTimeoutSeconds is the default TimeoutSeconds for RecreateDeploymentStrategyParams.
DeploymentConfigLabel is the name of a label used to correlate a deployment with the.
DeploymentStatusReasonAnnotation represents the reason for deployment being in a given state Used for specifying the reason for cancellation or failure of a deployment.
DeploymentLabel is the name of a label used to correlate a deployment with the Pod created.
FailedRcCreateReason is added in a deployment config when it cannot create a new replication controller.
MaxDeploymentDurationSeconds represents the maximum duration that a deployment is allowed to run.
MidHookPodSuffix is the suffix added to all mid hook pods.
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.
PausedConfigReason is added in a deployment config when it is paused.
PostHookPodSuffix is the suffix added to all post hook pods.
PreHookPodSuffix is the suffix added to all pre hook pods.
TimedOutReason is added in a deployment config when its newest replication controller fails to show any progress within the given deadline (progressDeadlineSeconds).
# Type aliases
ByLatestVersionDesc sorts deployments by LatestVersion descending.