Sitelet https://github.com/kubernetes/kops/pull/18484
Skip to content

gce: emit kops.k8s.io/instancegroup node label - #18484

Merged
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
rifelpet:fix-gce-instancegroup-label
Jun 18, 2026
Merged

k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
rifelpet:fix-gce-instancegroup-label

Conversation

@rifelpet

@rifelpet rifelpet commented Jun 18, 2026 •

Copy link
Copy Markdown
Member

The GCE node identifier reads the instance-group name from the MIG instance template metadata but never adds it to the returned labels, so kops-controller never patches kops.k8s.io/instancegroup onto GCE nodes. The label has been missing since the cluster-api refactor in a7f1b4f which landed in kops 1.35.

Fixes #18474

assisted by Opus 4.8

The GCE node identifier reads the instance-group name from the MIG
instance template metadata but never adds it to the returned labels,
so kops-controller never patches kops.k8s.io/instancegroup onto GCE
nodes. The label has been missing since the cluster-api refactor in
a7f1b4f.
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 18, 2026
@k8s-ci-robot
k8s-ci-robot requested review from hakman and zetaab June 18, 2026 01:20
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jun 18, 2026
@hakman hakman changed the title GCE: emit kops.k8s.io/instancegroup node label gce: emit kops.k8s.io/instancegroup node label Jun 18, 2026
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jun 18, 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 Jun 18, 2026
@k8s-ci-robot
k8s-ci-robot merged commit 8c18706 into kubernetes:master Jun 18, 2026
26 checks passed
k8s-ci-robot added a commit that referenced this pull request Jun 18, 2026
…84-origin-release-1.36

Automated cherry pick of #18484: gce: emit kops.k8s.io/instancegroup node label
k8s-ci-robot added a commit that referenced this pull request Jun 18, 2026
…84-origin-release-1.35

Automated cherry pick of #18484: gce: emit kops.k8s.io/instancegroup node label
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. 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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kops-controller does not apply instancegroup nodeLabels to worker nodes on GCE (kops 1.35.1, k8s 1.35.6) — works on AWS

3 participants