Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions apis/cf/latest/components/schemas/Deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,31 @@ allOf:
max_in_flight:
type: integer
description: The maximum number of new instances to deploy simultaneously
web_instances:
type: integer
description: The number of instances for the web process of the new droplet
memory_in_mb:
type: integer
description: The amount of memory in megabytes to allocate for the web process
disk_in_mb:
type: integer
description: The amount of disk space in megabytes to allocate for the web process
log_rate_limit_in_bytes_per_second:
type: integer
description: The log rate limit in bytes per second for the web process. A value of -1 indicates unlimited, 0 prevents any logs from being emitted.
canary:
type: object
description: Configuration for canary deployments. Present when strategy is 'canary'.
properties:
steps:
type: array
description: Array of steps defining the canary deployment progression
items:
type: object
properties:
instance_weight:
type: integer
description: The percentage of instances to be deployed as part of the canary process in this step
droplet:
type: object
properties:
Expand Down
33 changes: 33 additions & 0 deletions apis/cf/latest/paths/Deployments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,39 @@
enum:
- rolling
- canary
options:
type: object
properties:
max_in_flight:
type: integer
description: The maximum number of instances that will be deployed simultaneously
default: 1
minimum: 1
web_instances:
type: integer
description: The number of instances for the web process of the new droplet
memory_in_mb:
type: integer
description: The amount of memory in megabytes to allocate for the web process
disk_in_mb:
type: integer
description: The amount of disk space in megabytes to allocate for the web process
log_rate_limit_in_bytes_per_second:
type: integer
description: The log rate limit in bytes per second for the web process. A value of -1 indicates unlimited, 0 prevents any logs from being emitted.
canary:
type: object
description: Canary steps to use for the deployment. Only available for deployments with strategy ‘canary’.
properties:
steps:
type: array
description: Array of steps defining the canary deployment progression
items:
type: object
properties:
instance_weight:
type: integer
description: The percentage of instances to be deployed as part of the canary process in this step
droplet:
$ref: '../components/schemas/Relationship.yaml'
revision:
Expand Down
14 changes: 8 additions & 6 deletions apis/cf/latest/paths/Processes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,22 +189,22 @@
type:
- integer
- 'null'
- string
description: The number of instances to run
memory_in_mb:
type:
- integer
- 'null'
- string
description: The memory in MB allocated per instance
disk_in_mb:
type:
- integer
- 'null'
- string
description: The disk in MB allocated per instance
log_rate_limit_in_bytes_per_second:
type:
- integer
- 'null'
- string
description: The log rate limit in bytes per second per instance
responses:
'202':
description: Accepted
Expand Down Expand Up @@ -395,20 +395,22 @@
type:
- integer
- 'null'
- string
description: The number of instances to run
memory_in_mb:
type:
- integer
- 'null'
- string
description: The memory in MB allocated per instance
disk_in_mb:
type:
- integer
- 'null'
description: The disk in MB allocated per instance
log_rate_limit_in_bytes_per_second:
type:
- integer
- 'null'
description: The log rate limit in bytes per second per instance
responses:
'202':
description: Accepted
Expand Down