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
2 changes: 2 additions & 0 deletions specification/resources/kubernetes/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kubernetes_clusters_basic_request:
name: prod-cluster-01
region: nyc1
version: 1.18.6-do.0
isolated_workers: false
node_pools:
- size: s-1vcpu-2gb
count: 3
Expand All @@ -17,6 +18,7 @@ kubernetes_clusters_multi_pool_request:
name: prod-cluster-01
region: nyc1
version: 1.18.6-do.0
isolated_workers: false
tags:
- production
- web-team
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ source: |-
curl -X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
-d '{"name": "prod-cluster-01","region": "nyc1","version": "1.14.1-do.4","vpc_uuid": "c33931f2-a26a-4e61-b85c-4e95a2ec431b","worker_subnet_uuid": "cbd79771-23eb-49be-b5ea-59cc56222622","tags": ["production","web-team"],"node_pools": [{"size": "s-1vcpu-2gb","count": 3,"name": "frontend-pool","tags": ["frontend"],"labels": {"service": "frontend", "priority": "high"}},{"size": "c-4","count": 2,"name": "backend-pool"}]}' \
-d '{"name": "prod-cluster-01","region": "nyc1","version": "1.14.1-do.4","vpc_uuid": "c33931f2-a26a-4e61-b85c-4e95a2ec431b","worker_subnet_uuid": "cbd79771-23eb-49be-b5ea-59cc56222622","isolated_workers": false,"tags": ["production","web-team"],"node_pools": [{"size": "s-1vcpu-2gb","count": 3,"name": "frontend-pool","tags": ["frontend"],"labels": {"service": "frontend", "priority": "high"}},{"size": "c-4","count": 2,"name": "backend-pool"}]}' \
"https://api.digitalocean.com/v2/kubernetes/clusters"
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ source: |-
Name: "prod-cluster-01",
RegionSlug: "nyc1",
VersionSlug: "1.14.1-do.4",
IsolatedWorkers: false,
Tags: []string{"production", "web-team"},
NodePools: []*godo.KubernetesNodePoolCreateRequest{
&godo.KubernetesNodePoolCreateRequest{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ source: |-
"name": "prod-cluster-01",
"region": "nyc1",
"version": "1.18.6-do.0",
"isolated_workers": False,
"node_pools": [
{
"size": "s-1vcpu-2gb",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ source: |-
name: 'prod-cluster-01',
region: 'nyc1',
version: '1.14.1-do.4',
isolated_workers: false,
tags: ['production', 'web-team'],
node_pools: [
{
Expand Down
9 changes: 9 additions & 0 deletions specification/resources/kubernetes/models/cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,15 @@ properties:
description: A boolean value indicating whether the cluster will be
automatically upgraded to new patch releases during its maintenance window.

isolated_workers:
type: boolean
default: false
example: false
description: A boolean value indicating whether worker nodes in the cluster
are not assigned public IP addresses. When omitted on create, the default
value is false. When enabled, a NAT gateway must exist in the VPC where
the cluster is created.

status:
type: object
readOnly: true
Expand Down
9 changes: 9 additions & 0 deletions specification/resources/kubernetes/models/cluster_read.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,15 @@ properties:
description: A boolean value indicating whether the cluster will be
automatically upgraded to new patch releases during its maintenance window.

isolated_workers:
type: boolean
default: false
example: false
description: A boolean value indicating whether worker nodes in the cluster
are not assigned public IP addresses. When omitted on create, the default
value is false. When enabled, a NAT gateway must exist in the VPC where
the cluster is created.

status:
type: object
readOnly: true
Expand Down
5 changes: 5 additions & 0 deletions specification/resources/kubernetes/responses/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ kubernetes_clusters_all:
duration: 4h0m0s
day: any
auto_upgrade: false
isolated_workers: false
status:
state: provisioning
message: provisioning
Expand Down Expand Up @@ -227,6 +228,7 @@ kubernetes_single:
duration: 4h0m0s
day: any
auto_upgrade: false
isolated_workers: false
status:
state: running
created_at: '2018-11-15T16:00:11Z'
Expand Down Expand Up @@ -360,6 +362,7 @@ kubernetes_updated:
duration: 4h0m0s
day: any
auto_upgrade: true
isolated_workers: false
status:
state: running
created_at: '2018-11-15T16:00:11Z'
Expand Down Expand Up @@ -457,6 +460,7 @@ kubernetes_clusters_create_basic_response:
duration: 4h0m0s
day: any
auto_upgrade: false
isolated_workers: false
status:
state: provisioning
message: provisioning
Expand Down Expand Up @@ -593,6 +597,7 @@ kubernetes_clusters_multi_pool_response:
duration: 4h0m0s
day: any
auto_upgrade: false
isolated_workers: false
status:
state: provisioning
message: provisioning
Expand Down
Loading