Skip to content

Conversation

@georgibaltiev
Copy link
Contributor

@georgibaltiev georgibaltiev commented Jul 30, 2025

How to categorize this PR?

/area compliance
/kind cleanup
/kind bug
/platform gcp

What this PR does / why we need it:

With the following PR , a migration runnable has been added to clean up leftover ClusterRoles that are not used anymore.

The obsolete ClusterRoles in question can be named in the following format:
extensions.gardener.cloud:provider-gcp:shoot--<namespace>--<shoot_name>:machine-controller-manager

However, the runnable logic does not take into account that for older installations, the ClusterRole could be named with a singular dash separator:
extensions.gardener.cloud:provider-gcp:shoot-<namespace>-<shoot_name>:machine-controller-manager

This PR adjusts the regex to accept both name variations.

Which issue(s) this PR fixes:
NONE

Special notes for your reviewer:

Release note:

A bug preventing all obsolete machine-controller-manager ClusterRoles and ClusterRoleBindings to be deleted on extension startup has been fixed.

@georgibaltiev georgibaltiev requested a review from a team as a code owner July 30, 2025 09:49
@gardener-robot gardener-robot added area/compliance Compliance related kind/bug Bug kind/cleanup Something that is not needed anymore and can be cleaned up platform/gcp Google cloud platform/infrastructure needs/review Needs review size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jul 30, 2025
@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Jul 30, 2025
Copy link
Member

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@gardener-robot gardener-robot added reviewed/lgtm Has approval for merging and removed needs/review Needs review labels Jul 30, 2025
Copy link
Contributor

@kon-angelo kon-angelo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@kon-angelo kon-angelo merged commit 6772f28 into gardener:master Aug 7, 2025
30 checks passed
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compliance Compliance related kind/bug Bug kind/cleanup Something that is not needed anymore and can be cleaned up platform/gcp Google cloud platform/infrastructure reviewed/lgtm Has approval for merging reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. status/closed Issue is closed (either delivered or triaged)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants