diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index bfe4305d2fe..54ad5cbc91e 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -32665,6 +32665,43 @@ } } }, + "v1beta1.DeploymentCondition": { + "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "required": [ + "type", + "status", + "lastUpdateTime", + "lastTransitionTime", + "reason", + "message" + ], + "properties": { + "lastTransitionTime": { + "description": "Last time the condition transitioned from one status to another.", + "$ref": "#/definitions/unversioned.Time" + }, + "lastUpdateTime": { + "description": "The last time this condition was updated.", + "$ref": "#/definitions/unversioned.Time" + }, + "message": { + "description": "A human readable message indicating details about the transition.", + "type": "string" + }, + "reason": { + "description": "The reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "Status of the condition, one of True, False, Unknown.", + "type": "string" + }, + "type": { + "description": "Type of deployment condition.", + "type": "string" + } + } + }, "v1beta1.DeploymentList": { "description": "DeploymentList is a list of Deployments.", "required": [ @@ -32711,7 +32748,8 @@ "v1beta1.DeploymentSpec": { "description": "DeploymentSpec is the specification of the desired behavior of the Deployment.", "required": [ - "template" + "template", + "progressDeadlineSeconds" ], "properties": { "minReadySeconds": { @@ -32723,6 +32761,11 @@ "description": "Indicates that the deployment is paused and will not be processed by the deployment controller.", "type": "boolean" }, + "progressDeadlineSeconds": { + "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default.", + "type": "integer", + "format": "int32" + }, "replicas": { "description": "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.", "type": "integer", @@ -32753,12 +32796,22 @@ }, "v1beta1.DeploymentStatus": { "description": "DeploymentStatus is the most recently observed status of the Deployment.", + "required": [ + "conditions" + ], "properties": { "availableReplicas": { "description": "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.", "type": "integer", "format": "int32" }, + "conditions": { + "description": "Represents the latest available observations of a deployment's current state.", + "type": "array", + "items": { + "$ref": "#/definitions/v1beta1.DeploymentCondition" + } + }, "observedGeneration": { "description": "The generation observed by the deployment controller.", "type": "integer", diff --git a/api/swagger-spec/extensions_v1beta1.json b/api/swagger-spec/extensions_v1beta1.json index 721ab0d26c9..7aa76cf59c1 100644 --- a/api/swagger-spec/extensions_v1beta1.json +++ b/api/swagger-spec/extensions_v1beta1.json @@ -9454,6 +9454,11 @@ "rollbackTo": { "$ref": "v1beta1.RollbackConfig", "description": "The config this deployment is rolling back to. Will be cleared after rollback is done." + }, + "progressDeadlineSeconds": { + "type": "integer", + "format": "int32", + "description": "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default." } } }, @@ -9523,6 +9528,49 @@ "type": "integer", "format": "int32", "description": "Total number of unavailable pods targeted by this deployment." + }, + "conditions": { + "type": "array", + "items": { + "$ref": "v1beta1.DeploymentCondition" + }, + "description": "Represents the latest available observations of a deployment's current state." + } + } + }, + "v1beta1.DeploymentCondition": { + "id": "v1beta1.DeploymentCondition", + "description": "DeploymentCondition describes the state of a deployment at a certain point.", + "required": [ + "type", + "status" + ], + "properties": { + "type": { + "type": "string", + "description": "Type of deployment condition." + }, + "status": { + "type": "string", + "description": "Status of the condition, one of True, False, Unknown." + }, + "lastUpdateTime": { + "type": "string", + "format": "date-time", + "description": "The last time this condition was updated." + }, + "lastTransitionTime": { + "type": "string", + "format": "date-time", + "description": "Last time the condition transitioned from one status to another." + }, + "reason": { + "type": "string", + "description": "The reason for the condition's last transition." + }, + "message": { + "type": "string", + "description": "A human readable message indicating details about the transition." } } }, diff --git a/docs/api-reference/extensions/v1beta1/definitions.html b/docs/api-reference/extensions/v1beta1/definitions.html index 821bf9478db..e36321a2ea3 100755 --- a/docs/api-reference/extensions/v1beta1/definitions.html +++ b/docs/api-reference/extensions/v1beta1/definitions.html @@ -488,6 +488,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
integer (int32)
conditions
Represents the latest available observations of a deployment’s current state.
false
progressDeadlineSeconds
The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Once autoRollback is implemented, the deployment controller will automatically rollback failed deployments. Note that progress will not be estimated during the time a deployment is paused. This is not set by default.
false
integer (int32)
DeploymentCondition describes the state of a deployment at a certain point.
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
type |
+Type of deployment condition. |
+true |
+string |
++ |
status |
+Status of the condition, one of True, False, Unknown. |
+true |
+string |
++ |
lastUpdateTime |
+The last time this condition was updated. |
+false |
+string (date-time) |
++ |
lastTransitionTime |
+Last time the condition transitioned from one status to another. |
+false |
+string (date-time) |
++ |
reason |
+The reason for the condition’s last transition. |
+false |
+string |
++ |
message |
+A human readable message indicating details about the transition. |
+false |
+string |
++ |