Skip to content

feat(vks): create-cluster provisions control plane only (drop node group)#28

Merged
vks-team merged 1 commit into
mainfrom
feat/create-cluster-no-nodegroup
Jul 3, 2026
Merged

feat(vks): create-cluster provisions control plane only (drop node group)#28
vks-team merged 1 commit into
mainfrom
feat/create-cluster-no-nodegroup

Conversation

@vks-team

@vks-team vks-team commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Summary

create-cluster now creates only the cluster (control plane). It no longer builds a default node group in the same call. Users add workers separately with grn vks create-nodegroup.

Changes

  • Removed node-group flags: --node-group-name, --flavor-id, --os, --disk-type, --ssh-key-id, --disk-size, --num-nodes, --private-nodes, --security-groups, --labels, --taints.
  • Removed nodeGroups from the request body.
  • Kept cluster flags: --name, --k8s-version, --network-type, --vpc-id, --subnet-id (required); --cidr, --description, --private-cluster, --release-channel, --load-balancer-plugin, --block-store-csi-plugin, --dry-run.
  • Dry-run validation drops the node-group checks (name/disk-size/num-nodes); keeps cluster-name + CIDR checks.
  • Command Long help + docs now point to create-nodegroup for adding workers.

⚠️ API change

This removes flags and changes the request body, so it's breaking for anyone scripting create-cluster with node-group flags. The nodeGroups field is currently still listed as required in the VKS API spec — this PR aligns the CLI ahead of a spec update (per request) that makes nodeGroups optional. Until the spec/server is updated, a real create call may be rejected server-side; --dry-run works offline.

Testing

  • go vet ./... clean; full go test ./... passes; build clean.
  • Verified --help shows only cluster flags; --dry-run validates a control-plane-only cluster successfully.

🤖 Generated with Claude Code

…oup)

create-cluster no longer builds a default node group. Removed all node-group
flags (--node-group-name, --flavor-id, --os, --disk-type, --ssh-key-id,
--disk-size, --num-nodes, --private-nodes, --security-groups, --labels,
--taints) and the nodeGroups field from the request body; dry-run validation
drops the node-group checks. Users create workers separately with
'grn vks create-nodegroup'.

Note: the VKS API spec still lists nodeGroups as required; this aligns the CLI
ahead of a spec update that makes it optional.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vks-team vks-team merged commit f4f6f0a into main Jul 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant