Skip to content

Commit c7029d1

Browse files
Samzesethboyles
authored andcommitted
Add canary step docs
1 parent 8ee7060 commit c7029d1

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

docs/v3/source/includes/api_resources/_deployments.erb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,27 @@
88
"details": {
99
"last_successful_healthcheck": "2018-04-25T22:42:10Z",
1010
"last_status_change": "2018-04-25T22:42:10Z"
11+
},
12+
"canary": {
13+
"steps": {
14+
"current": 1,
15+
"total": 2
16+
}
1117
}
1218
},
1319
"strategy": "canary",
1420
"options" : {
1521
"max_in_flight": 3,
22+
"canary": {
23+
"steps": [
24+
{
25+
"instance_weight": 10
26+
},
27+
{
28+
"instance_weight": 20
29+
}
30+
]
31+
}
1632
},
1733
"droplet": {
1834
"guid": "44ccfa61-dbcf-4a0d-82fe-f668e9d2a962"

docs/v3/source/includes/resources/deployments/_create.md.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Name | Type | Description | Default
7878
**revision**<sup>[1]</sup> | _object_ | The [revision](#revisions) whose droplet to deploy for the app; this will update the app's [current droplet](#get-current-droplet-association-for-an-app) to this droplet |
7979
**strategy** | _string_ | The strategy to use for the deployment | `rolling`
8080
**options.max_in_flight** | _integer_ | The maximum number of new instances to deploy simultaneously | 1
81+
**options.canary.steps** | _array of [canary step objects](#canary-steps-object)_ | Canary steps to use for the deployment An array of canary steps to use for the deployment
8182
**metadata.labels** | [_label object_](#labels) | Labels applied to the deployment
8283
**metadata.annotations** | [_annotation object_](#annotations) | Annotations applied to the deployment
8384

docs/v3/source/includes/resources/deployments/_object.md.erb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ Name | Type | Description
1515
**status.value** | _string_ | The current status of the deployment; valid values are `ACTIVE` (meaning in progress) and `FINALIZED` (meaning finished, either successfully or not)
1616
**status.reason** | _string_ | The reason for the status of the deployment;<br>following list represents valid values:<br>1. If **status.value** is `ACTIVE`<br>- `DEPLOYING`<br>- `PAUSED` (only valid for canary deployments) <br>- `CANCELING`<br>2. If **status.value** is `FINALIZED`<br>- `DEPLOYED`<br>- `CANCELED`<br>- `SUPERSEDED` (another deployment created for app before completion)<br>
1717
**status.details.last_successful_healthcheck** | _[timestamp](#timestamps)_ | Timestamp of the last successful healthcheck
18-
**status.details.last_status_change** | _[timestamp](#timestamps)_ | Timestamp of last change to status.value or status.reason
18+
**status.details.last_status_change** | _[timestamp](#timestamps)_ | Timestamp of last change to status.value or status.reason**status.details.last_status_change** | _[timestamp](#timestamps)_ | Timestamp of last change to status.value or status.reason
19+
**status.canary.steps.current** | _integer_ | The current canary step. Only available deployments with strategy 'canary'. (experimental)
20+
**status.canary.steps.total** | _integer_ | The total number of canary steps. Only available deployments with strategy 'canary'. (experimental)
1921
**strategy** | _string_ | Strategy used for the deployment; supported strategies are `rolling` and `canary` (experimental)
2022
**options.max_in_flight** | _integer_ | The maximum number of new instances to deploy simultaneously
23+
**options.canary.steps** | _array of [canary step objects](#canary-steps-object)_ | Canary steps to use for the deployment. Only available deployments with strategy 'canary'. (experimental)
2124
**droplet.guid** | _string_ | The droplet guid that the deployment is transitioning the app to
2225
**previous_droplet.guid** | _string_ | The app's [current droplet guid](#get-current-droplet-association-for-an-app) before the deployment was created
2326
**new_processes** | _array_ | List of processes created as part of the deployment
@@ -26,3 +29,8 @@ Name | Type | Description
2629
**metadata.labels** | [_label object_](#labels) | Labels applied to the deployment
2730
**metadata.annotations** | [_annotation object_](#annotations) | Annotations applied to the deployment
2831
**links** | [_links object_](#links) | Links to related resources
32+
33+
34+
#### Canary steps object
35+
36+
**instance_weight** | _integer_ | The percentage of instances to be deployed as part of the canary process in this step (experimental)

0 commit comments

Comments
 (0)