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

[1.10] Configure webhook dynamically #46

Closed
wants to merge 4 commits into from

Conversation

pns-nirmata
Copy link

@pns-nirmata pns-nirmata commented Sep 14, 2023

Explanation

Replicate PR #31 for Kyverno 1.10, for kyverno#8313

Signed-off-by: anushkamittal2001 <[email protected]>

Minor correction in comparison

Signed-off-by: anushkamittal2001 <[email protected]>

Changes in mutatingWebhookConfiguration

Signed-off-by: anushkamittal2001 <[email protected]>

Add minor change in variable declaration

Signed-off-by: anushkamittal2001 <[email protected]>

Correct comparison in controller.go

Signed-off-by: anushkamittal2001 <[email protected]>
@pns-nirmata pns-nirmata marked this pull request as draft September 14, 2023 17:43
@pns-nirmata pns-nirmata changed the title Initial changes for configure webhook dynamically [1.10] Configure webhook dynamically Sep 14, 2023
@codecov-commenter
Copy link

codecov-commenter commented Sep 14, 2023

Codecov Report

Merging #46 (b67cada) into release-1.10-n4k (60b634d) will decrease coverage by 0.08%.
Report is 11 commits behind head on release-1.10-n4k.
The diff coverage is 40.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@                 Coverage Diff                  @@
##           release-1.10-n4k      #46      +/-   ##
====================================================
- Coverage             34.61%   34.53%   -0.08%     
====================================================
  Files                   222      223       +1     
  Lines                 21367    21483     +116     
====================================================
+ Hits                   7396     7420      +24     
- Misses                13222    13312      +90     
- Partials                749      751       +2     
Files Coverage Δ
pkg/engine/context/evaluate.go 56.75% <100.00%> (+0.94%) ⬆️
pkg/utils/match/labels.go 78.57% <100.00%> (ø)
pkg/validation/policy/validate.go 52.94% <ø> (ø)
pkg/engine/utils/foreach.go 0.00% <0.00%> (ø)
pkg/engine/variables/vars.go 52.49% <85.71%> (+0.19%) ⬆️
pkg/engine/jmespath/interface.go 33.33% <33.33%> (+33.33%) ⬆️
pkg/engine/wildcards/wildcards.go 15.59% <0.00%> (-0.30%) ⬇️
pkg/engine/context/mock_context.go 0.00% <0.00%> (ø)
pkg/engine/utils/utils.go 0.00% <0.00%> (ø)
pkg/engine/jmespath/new.go 69.56% <63.15%> (-30.44%) ⬇️
... and 5 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

operationStatusMap[webhookCreate] = true
operationStatusMap[webhookUpdate] = true

if r.HasGenerate() {
Copy link
Author

Choose a reason for hiding this comment

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

@anushkamittal2001 Can you check this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@pns-nirmata I think we are missing to add "connect"

@pns-nirmata
Copy link
Author

Covered in PR combining the 3 performance PRs: #54

@pns-nirmata
Copy link
Author

Closed accidentally. Changes still unmerged

@pns-nirmata pns-nirmata reopened this Sep 27, 2023
@pns-nirmata
Copy link
Author

Merged separate PR to the 1.10 branch. Closing this one, had some test failures.

@pns-nirmata pns-nirmata closed this Oct 3, 2023
@anushkamittal2001 anushkamittal2001 deleted the conf-webhooks-dyn-1.10 branch August 27, 2024 09:27
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.

3 participants