doks: add isolated workers to kubernetes create call - #1069
Conversation
|
IsolatedWorkers bool `json:"isolated_workers,omitempty"`Because That's only safe if the server treats "absent" and "false" identically at create time. If it ever needs to tell them apart (say, to let The struct already handles this exact case a few lines above with |
|
The field needs a doc comment explaining the NAT-gateway requirement Isolated workers require the cluster's VPC to already have a NAT gateway attached. I confirmed this against the live API — without one, the create call fails: As written, the field is undocumented, so the only way a user learns about this precondition is by triggering the 422. A brief comment would make the constraint discoverable at the call site: // IsolatedWorkers enables isolated worker nodes. When true, the cluster's VPC
// must already have a NAT gateway attached, or the create request fails with a
// 422. This can only be set at creation time.If isolated workers can actually be changed after creation, drop the last line and add the field to |
|
@DO-rrao - thanks for the review.
|
This PR adds a new configuration field to kubernetes cluster create call for isolated workers.