-
Notifications
You must be signed in to change notification settings - Fork 762
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: scope of webhook configurations #3676
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: plavy <[email protected]>
cmd/build/helmify/replacements.go
Outdated
@@ -173,6 +173,7 @@ var replacements = map[string]string{ | |||
- services/proxy | |||
- nodes/proxy | |||
- services/status | |||
scope: 'Namespaced' |
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.
Let's not modify existing behavior. Can you use helm to conditionally set the field separetly?
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.
I am reading it from the values now, what do you think?
Signed-off-by: plavy <[email protected]>
Signed-off-by: tin.plavec <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3676 +/- ##
==========================================
- Coverage 54.49% 47.54% -6.96%
==========================================
Files 134 236 +102
Lines 12329 19909 +7580
==========================================
+ Hits 6719 9466 +2747
- Misses 5116 9551 +4435
- Partials 494 892 +398
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Thanks for the contribution!
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
What this PR does / why we need it:
As described in the issue, scope of the webhooks is not set, defaulting to unrestricted scope.
namespaceSelector
is therefore not fully enforced.Which issue(s) this PR fixes:
Fixes #3675