Skip to content

Commit

Permalink
deploy: generated code for deployment conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmichalis committed Oct 5, 2016
1 parent 103e877 commit 5c50bbb
Show file tree
Hide file tree
Showing 10 changed files with 787 additions and 223 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions api/swagger-spec/oapi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -24726,6 +24726,13 @@
"details": {
"$ref": "v1.DeploymentDetails",
"description": "Details are the reasons for the update to this deployment config. This could be based on a change made by the user or caused by an automatic trigger"
},
"conditions": {
"type": "array",
"items": {
"$ref": "v1.DeploymentCondition"
},
"description": "Conditions represents the latest available observations of a deployment config's current state."
}
}
},
Expand Down Expand Up @@ -24779,6 +24786,36 @@
}
}
},
"v1.DeploymentCondition": {
"id": "v1.DeploymentCondition",
"description": "DeploymentCondition describes the state of a deployment config 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."
},
"lastTransitionTime": {
"type": "string",
"description": "The 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."
}
}
},
"v1.DeploymentRequest": {
"id": "v1.DeploymentRequest",
"description": "DeploymentRequest is a request to a deployment config for a new deployment.",
Expand Down
36 changes: 36 additions & 0 deletions api/swagger-spec/openshift-openapi-spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -46113,6 +46113,35 @@
}
}
},
"v1.DeploymentCondition": {
"description": "DeploymentCondition describes the state of a deployment config at a certain point.",
"required": [
"type",
"status"
],
"properties": {
"lastTransitionTime": {
"description": "The last time the condition transitioned from one status to another.",
"type": "string"
},
"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"
}
}
},
"v1.DeploymentConfig": {
"description": "Deployment Configs define the template for a pod and manages deploying new images or configuration changes. A single deployment configuration is usually analogous to a single micro-service. Can support many different deployment patterns, including full restart, customizable rolling updates, and fully custom behaviors, as well as pre- and post- deployment hooks. Each individual deployment is represented as a replication controller.\n\nA deployment is \"triggered\" when its configuration is changed or a tag in an Image Stream is changed. Triggers can be disabled to allow manual control over a deployment. The \"strategy\" determines how the deployment is carried out and may be changed at any time. The `latestVersion` field is updated when a new deployment is triggered by any means.",
"required": [
Expand Down Expand Up @@ -46288,6 +46317,13 @@
"type": "integer",
"format": "int32"
},
"conditions": {
"description": "Conditions represents the latest available observations of a deployment config's current state.",
"type": "array",
"items": {
"$ref": "#/definitions/v1.DeploymentCondition"
}
},
"details": {
"$ref": "#/definitions/v1.DeploymentDetails"
},
Expand Down
Loading

0 comments on commit 5c50bbb

Please sign in to comment.