Skip to content

fix(vks): drop stale --image-id, add --os (align with latest API)#18

Merged
vks-team merged 1 commit into
mainfrom
fix/nodegroup-os-drift
Jun 29, 2026
Merged

fix(vks): drop stale --image-id, add --os (align with latest API)#18
vks-team merged 1 commit into
mainfrom
fix/nodegroup-os-drift

Conversation

@vks-team

Copy link
Copy Markdown
Contributor

Summary

Field-level audit against the latest vks.json found that imageId was removed from the API's node group DTOs, but the CLI still required --image-id and sent imageId. Fixes the drift:

  • create-nodegroup, create-cluster: remove --image-id; add optional --os (ubuntu|linux, default ubuntu), sent as the os field per CreateNodeGroupDto.
  • update-nodegroup: remove --image-id entirely (UpdateNodeGroupDto has no image field); now requires at least one real update field.
  • completion: drop the dead --image-id completer (/node-group-images); add --os value completion (ubuntu/linux). (Note: there was no list-nodegroup-images command — only this completer.)
  • docs: replace --image-id with --os on the create pages, remove it from update-nodegroup, fix usage examples. Zero image-id references remain.

update-cluster was already in sync — no change.

⚠️ Breaking

--image-id is no longer accepted on create-cluster, create-nodegroup, update-nodegroup. Use --os for node group image selection.

Test plan

  • go build + go vet clean
  • go test ./... — all pass
  • grn vks create-nodegroup/create-cluster --help show --os (default ubuntu), no --image-id
  • grn vks update-nodegroup --help has no --image-id
  • grn __complete vks create-nodegroup --os ""ubuntu, linux
  • Smoke-test create against a live project

🤖 Generated with Claude Code

…dd --os)

The latest VKS API removed imageId from CreateNodeGroupDto/UpdateNodeGroupDto
and the cluster create node group. The CLI still required --image-id and sent
imageId, which is stale (update-nodegroup even forced a field the API ignores).

- create-nodegroup, create-cluster: remove --image-id; add optional --os
  (ubuntu|linux, default ubuntu) sent as the `os` field
- update-nodegroup: remove --image-id entirely; require at least one update field
- completion: drop dead image-id completer (/node-group-images); add --os values
- docs: replace image-id with --os (creates) / remove (update); fix examples

BREAKING: --image-id is no longer accepted on these commands.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vks-team vks-team merged commit f6a7381 into main Jun 29, 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