Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add label to cloudprovider secret and adapt webhook #5527

Merged
merged 2 commits into from Mar 7, 2022

Conversation

kon-angelo
Copy link
Contributor

@kon-angelo kon-angelo commented Mar 7, 2022

How to categorize this PR?

/area control-plane
/kind enhancement

What this PR does / why we need it:

This PR:
a) adds a label to the cloudprovider secret deployed on the seeds so that it can be used by webhooks
b) updates the clouprovider webhook to use the new label as object selector.

Which issue(s) this PR fixes:
Before the new label the webhook was reacting to all the secrets. In case the extension was not available for some time, the operation of other components e.g. GRM that creates secrets could be halted due to the failing webhook. With this change we should avoid such issues.

Special notes for your reviewer:

Release note:

Adds a new label to the `cloudprovider` secret so that it can be filtered by controllers.
The `cloudprovider` webhook now filters secrets using the new label of the `cloudprovider` secret.

@kon-angelo kon-angelo requested a review from a team as a code owner March 7, 2022 08:24
@gardener-robot gardener-robot added the area/control-plane Control plane related label Mar 7, 2022
@gardener-robot
Copy link

@kon-angelo Label kind/scalability does not exist.

@gardener-robot gardener-robot added needs/review size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 7, 2022
@gardener-robot gardener-robot added the kind/enhancement Enhancement, improvement, extension label Mar 7, 2022
@rfranzke
Copy link
Member

rfranzke commented Mar 7, 2022

/assign

Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

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

/lgtm

@rfranzke rfranzke merged commit 1ff1426 into gardener:master Mar 7, 2022
krgostev pushed a commit to krgostev/gardener that referenced this pull request Apr 21, 2022
* add label for cloudprovider secret

* configure use of objectselector via flag
krgostev pushed a commit to krgostev/gardener that referenced this pull request Jul 5, 2022
* add label for cloudprovider secret

* configure use of objectselector via flag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/control-plane Control plane related kind/enhancement Enhancement, improvement, extension 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.

None yet

6 participants