@@ -424,15 +424,26 @@ type DeploymentCauseImageTrigger struct {
424
424
425
425
type DeploymentConditionType string
426
426
427
- // These are valid conditions of a deployment config .
427
+ // These are valid conditions of a DeploymentConfig .
428
428
const (
429
- // DeploymentAvailable means the deployment config is available, ie. at least the minimum available
430
- // replicas required are up and running for at least minReadySeconds.
429
+ // DeploymentAvailable means the DeploymentConfig is available, ie. at least the minimum available
430
+ // replicas required (dc.spec.replicas in case the DeploymentConfig is of Recreate type,
431
+ // dc.spec.replicas - dc.spec.strategy.rollingParams.maxUnavailable in case it's Rolling) are up and
432
+ // running for at least dc.spec.minReadySeconds.
431
433
DeploymentAvailable DeploymentConditionType = "Available"
432
- // DeploymentProgressing means the deployment config is progressing. Progress for a deployment
433
- // config is considered when a new replica set is created or adopted, and when new pods scale up or
434
- // old pods scale down. Progress is not estimated for paused deployment configs, when the deployment
435
- // config needs to rollback, or when progressDeadlineSeconds is not specified.
434
+ // DeploymentProgressing is:
435
+ // * True: the DeploymentConfig has been successfully deployed or is amidst getting deployed.
436
+ // The two different states can be determined by looking at the Reason of the Condition.
437
+ // For example, a complete DC will have {Status: True, Reason: NewReplicationControllerAvailable}
438
+ // and a DC in the middle of a rollout {Status: True, Reason: ReplicationControllerUpdated}.
439
+ // TODO: Represent a successfully deployed DC by using something else for Status like Unknown?
440
+ // * False: the DeploymentConfig has failed to deploy its latest version.
441
+ //
442
+ // This condition is purely informational and depends on the dc.spec.strategy.*params.timeoutSeconds
443
+ // field, which is responsible for the time in seconds to wait for a rollout before deciding that
444
+ // no progress can be made, thus the rollout is aborted.
445
+ //
446
+ // Progress for a DeploymentConfig is considered when new pods scale up or old pods scale down.
436
447
DeploymentProgressing DeploymentConditionType = "Progressing"
437
448
// DeploymentReplicaFailure is added in a deployment config when one of its pods
438
449
// fails to be created or deleted.
0 commit comments