Skip to content

Commit 1c50544

Browse files
committed
implement feedback
1 parent f4ada15 commit 1c50544

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

specification/resources/kubernetes/examples/curl/kubernetes_create_cluster.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ source: |-
33
curl -X POST \
44
-H "Content-Type: application/json" \
55
-H "Authorization: Bearer $DIGITALOCEAN_TOKEN" \
6-
-d '{"name": "prod-cluster-01","region": "nyc1","version": "1.14.1\
7-
-do.4","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"}]}' \
6+
-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"}]}' \
87
"https://api.digitalocean.com/v2/kubernetes/clusters"

specification/resources/kubernetes/models/cluster.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ properties:
5656
example: cbd79771-23eb-49be-b5ea-59cc56222622
5757
description: |
5858
The UUID of the VPC subnet to attach worker nodes to. When omitted on
59-
create, the default subnet for the VPC is used. Requires `vpc_uuid` to be
60-
set.
59+
create, the default subnet for the VPC is used. This value cannot be changed
60+
after the cluster is created.
61+
62+
`vpc_uuid` must also be set.
63+
<br><br>Requires `vpc:read` scope.
6164
6265
ipv4:
6366
type: string
@@ -196,3 +199,7 @@ required:
196199
- region
197200
- version
198201
- node_pools
202+
203+
dependentRequired:
204+
worker_subnet_uuid:
205+
- vpc_uuid

specification/resources/kubernetes/models/cluster_read.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ properties:
5656
example: cbd79771-23eb-49be-b5ea-59cc56222622
5757
description: |
5858
The UUID of the VPC subnet worker nodes are attached to. When unset, the
59-
default subnet for the VPC is used.
59+
default subnet for the VPC is used.<br><br>Requires `vpc:read` scope.
6060
6161
ipv4:
6262
type: string

specification/resources/kubernetes/responses/examples.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ kubernetes_clusters_all:
88
cluster_subnet: 10.244.0.0/16
99
service_subnet: 10.245.0.0/16
1010
vpc_uuid: c33931f2-a26a-4e61-b85c-4e95a2ec431b
11-
worker_subnet_uuid: cbd79771-23eb-49be-b5ea-59cc56222622
1211
ipv4: 68.183.121.157
1312
endpoint: https://bd5f5959-5e1e-4205-a714-a914373942af.k8s.ondigitalocean.com
1413
tags:
@@ -271,7 +270,6 @@ kubernetes_updated:
271270
cluster_subnet: 10.244.0.0/16
272271
service_subnet: 10.245.0.0/16
273272
vpc_uuid: c33931f2-a26a-4e61-b85c-4e95a2ec431b
274-
worker_subnet_uuid: cbd79771-23eb-49be-b5ea-59cc56222622
275273
ipv4: 68.183.121.157
276274
endpoint: https://bd5f5959-5e1e-4205-a714-a914373942af.k8s.ondigitalocean.com
277275
tags:
@@ -401,7 +399,6 @@ kubernetes_clusters_create_basic_response:
401399
cluster_subnet: 10.244.0.0/16
402400
service_subnet: 10.245.0.0/16
403401
vpc_uuid: c33931f2-a26a-4e61-b85c-4e95a2ec431b
404-
worker_subnet_uuid: cbd79771-23eb-49be-b5ea-59cc56222622
405402
ipv4: ''
406403
endpoint: ''
407404
tags:

0 commit comments

Comments
 (0)