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

fix: scope of webhook configurations #3676

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

plavy
Copy link

@plavy plavy commented Oct 30, 2024

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

@plavy plavy requested a review from a team as a code owner October 30, 2024 19:50
@@ -173,6 +173,7 @@ var replacements = map[string]string{
- services/proxy
- nodes/proxy
- services/status
scope: 'Namespaced'
Copy link
Contributor

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?

Copy link
Author

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?

plavy and others added 2 commits November 6, 2024 09:59
Signed-off-by: tin.plavec <[email protected]>
@codecov-commenter
Copy link

codecov-commenter commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.54%. Comparing base (3350319) to head (6d4cd74).
Report is 205 commits behind head on master.

❗ There is a different number of reports uploaded between BASE (3350319) and HEAD (6d4cd74). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (3350319) HEAD (6d4cd74)
unittests 2 1
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     
Flag Coverage Δ
unittests 47.54% <ø> (-6.96%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@JaydipGabani JaydipGabani left a 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!

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

namespaceSelector of the webhooks doesn't have effect since scope is not defined
4 participants