package
3.10.0-alpha.0+incompatible
Repository: https://github.com/nalind/origin.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
ActiveDeployment returns the latest complete deployment, or nil if there is no such deployment.
ActiveDeploymentV1 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.
No description provided by the author
No description provided by the author
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
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.
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.
No description provided by the author
IsFailedDeployment returns true if the passed deployment failed.
IsInitialDeployment returns whether the deployment configuration is the first version of this configuration.
IsNewDeployment returns true if the passed deployment is in new state.
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.
LabelForDeployment builds a string identifier for a Deployment.
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 an internal ReplicationController and based on the given DeploymentConfig.
MakeDeploymentV1 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.
No description provided by the author
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.
RolloutExceededTimeoutSeconds returns true if the current deployment exceeded the timeoutSeconds defined for its strategy.
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.
# Variables
DeploymentConfigControllerRefKind contains the schema.GroupVersionKind for the deployment config.
# Type aliases
ByLatestVersionAsc sorts deployments by LatestVersion ascending.
No description provided by the author
ByLatestVersionDesc sorts deployments by LatestVersion descending.
ByLatestVersionDescV1 sorts deployments by LatestVersion descending.
ByMostRecent sorts deployments by most recently created.