Skip to content

Validate instance group names in kops-controller#18391

Merged
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
rifelpet:kops-fixes
May 21, 2026
Merged

Validate instance group names in kops-controller#18391
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
rifelpet:kops-fixes

Conversation

@rifelpet
Copy link
Copy Markdown
Member

InstanceGroup names are Kubernetes ObjectMeta names and should follow the DNS-subdomain rule the API server enforces on every other ObjectMeta. The kops validation package already centralizes rules of this shape (cluster names, etc.), but there was no equivalent helper for InstanceGroup names — each call site was either reimplementing the check or skipping it. kops-controller in particular was using the IG name from the verified node identity as a path component when resolving igconfig/node/<name>/nodeupconfig.yaml without validating its shape first.

(Opus 4.7)

/cc @hakman

@k8s-ci-robot k8s-ci-robot requested a review from hakman May 21, 2026 13:14
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. area/api area/kops-controller cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 21, 2026
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 21, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 21, 2026
@hakman
Copy link
Copy Markdown
Member

hakman commented May 21, 2026

/retest

@k8s-ci-robot k8s-ci-robot merged commit c0dfda9 into kubernetes:master May 21, 2026
26 checks passed
k8s-ci-robot added a commit that referenced this pull request May 21, 2026
…91-origin-release-1.34

Automated cherry pick of #18391: Validate instance group names in kops-controller
k8s-ci-robot added a commit that referenced this pull request May 21, 2026
…91-origin-release-1.35

Automated cherry pick of #18391: Validate instance group names in kops-controller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/api area/kops-controller cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants