-
Notifications
You must be signed in to change notification settings - Fork 759
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
fix: Allow to change WebhookConfiguration name and change preInstall crd image #2563
Conversation
@jtyr thanks for the PR! Looks like we need DCO to be signed. |
@sozercan All checks but the "Upgrade test" are fine. The "Upgrade test" is failing due to missing |
VwhName = flag.String("validating-webhook-configuration-name", "gatekeeper-validating-webhook-configuration", "name of the ValidatingWebhookConfiguration") | ||
MwhName = flag.String("mutating-webhook-configuration-name", "gatekeeper-mutating-webhook-configuration", "name of the MutatingWebhookConfiguration") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we make a call out about these in the docs? maybe in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please could you point me to where exactly do you want me to document this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it being available in --help
and in the helm chart README is documentation enough.
We document how to run --help
here:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you for the PR!
Codecov ReportBase: 53.41% // Head: 53.47% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #2563 +/- ##
==========================================
+ Coverage 53.41% 53.47% +0.05%
==========================================
Files 120 120
Lines 10634 10634
==========================================
+ Hits 5680 5686 +6
+ Misses 4516 4511 -5
+ Partials 438 437 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Any idea why the Gator test is failing? |
gator test fail is due to #2569 |
looks like after this change |
Is removing |
7b05a19
to
779b140
Compare
We can use YAML anchor as shown in the last commit to keep it backward compatible and remove it in the future release. Btw. the |
cb80062
to
b325bc4
Compare
I assume users probably updated this field (along with other image fields) in the values yaml as best practice is to build and replace with your own image in your own registry. |
Well, that's exactly the reason why I have added the |
@sozercan Please can you review and approve? |
@jtyr sorry about the delay. I tested this with:
looks like this does not set the value, it's kept as is this intended? |
No, that's not how I thought it will work. So it looks like a breaking change. How do you want to proceed? |
@jtyr since this is a breaking change, should we keep the core change (allowing webhook names to be configurable) but keep crd image config as is? @ritazh @maxsmythe thoughts? |
+1 |
+1 as well |
Signed-off-by: Jiri Tyr <jiri.tyr@gmail.com>
Signed-off-by: Jiri Tyr <jiri.tyr@gmail.com>
Signed-off-by: Jiri Tyr <jiri.tyr@gmail.com>
In the last commit, I have changed the behavior that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…crd image (open-policy-agent#2563) Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com>
…crd image (open-policy-agent#2563) Co-authored-by: Sertaç Özercan <852750+sozercan@users.noreply.github.com> Signed-off-by: Xander Grzywinski <xandergr@microsoft.com>
MutatingWebhookConfigurations
andValidatingWebhookConfigurations
are executed in alphabetical order. That's why the name of those resources matter to maintain the right order of the Webhooks execution. For example there is aMutatingWebhookConfiguration
on all AKS clusters that's calledaks-webhook-admission-controller
. If I want to createAssignMetadata
that inserts annotation that the AKS Mutating Webhook is looking for, that won't work without this PR as the currentMutatingWebhookConfiguration
isgatekeeper-mutating-webhook-configuration
which comes alphabetically afteraks-webhook-admission-controller
. That's why we need this PR to allow to give theMutatingWebhookConfiguration
and theValidatingWebhookConfiguration
a different name.