Skip to content

gce: stop granting compute.viewer to worker nodes#18356

Merged
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
hakman:gce-iam-no-worker-nodes
May 17, 2026
Merged

gce: stop granting compute.viewer to worker nodes#18356
k8s-ci-robot merged 1 commit into
kubernetes:masterfrom
hakman:gce-iam-no-worker-nodes

Conversation

@hakman
Copy link
Copy Markdown
Member

@hakman hakman commented May 17, 2026

The worker service account was granted roles/compute.viewer on the whole project. Its only consumer was protokube, which called the Compute API (compute.zones.list, compute.instances.list) for gossip peer discovery. Workers no longer run protokube, they bootstrap via kops-controller, so the role is unused on worker nodes.

Refs: #18240

/cc @rifelpet @ameukam

The worker service account was granted roles/compute.viewer on the whole
project. Its only consumer was protokube, which called the Compute API
(compute.zones.list, compute.instances.list) for gossip peer discovery.
Workers no longer run protokube, they bootstrap via kops-controller, so
the role is unused on worker nodes.
@k8s-ci-robot k8s-ci-robot requested review from ameukam and rifelpet May 17, 2026 04:58
@k8s-ci-robot k8s-ci-robot added area/provider/gcp Issues or PRs related to gcp provider size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 17, 2026
@hakman
Copy link
Copy Markdown
Member Author

hakman commented May 17, 2026

/test pull-kops-gce-upgrade-gossip

@ameukam
Copy link
Copy Markdown
Member

ameukam commented May 17, 2026

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 17, 2026
@hakman
Copy link
Copy Markdown
Member Author

hakman commented May 17, 2026

/approve

@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 17, 2026
@hakman
Copy link
Copy Markdown
Member Author

hakman commented May 17, 2026

/test pull-kops-gce-upgrade-gossip

@hakman
Copy link
Copy Markdown
Member Author

hakman commented May 17, 2026

/hold to check the upgrade logs

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 17, 2026
@hakman
Copy link
Copy Markdown
Member Author

hakman commented May 17, 2026

/retest

@hakman
Copy link
Copy Markdown
Member Author

hakman commented May 17, 2026

/test pull-kops-gce-upgrade-gossip

@hakman
Copy link
Copy Markdown
Member Author

hakman commented May 17, 2026

/override pull-kops-gce-upgrade-gossip
/unhold

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 17, 2026
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

@hakman: Overrode contexts on behalf of hakman: pull-kops-gce-upgrade-gossip

Details

In response to this:

/override pull-kops-gce-upgrade-gossip
/unhold

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot merged commit 45b5722 into kubernetes:master May 17, 2026
28 checks passed
@hakman hakman deleted the gce-iam-no-worker-nodes branch May 17, 2026 09:15
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/provider/gcp Issues or PRs related to gcp provider 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