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: generate policy exception events #5987

Merged
merged 4 commits into from
Jan 13, 2023

Conversation

eddycharly
Copy link
Member

Signed-off-by: Charles-Edouard Brétéché charles.edouard@nirmata.com

Explanation

This PR fixes policy exception events.

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
@eddycharly
Copy link
Member Author

/cherry-pick release-1.9

@eddycharly eddycharly enabled auto-merge (squash) January 12, 2023 14:24
Copy link
Member

@chipzoller chipzoller left a comment

Choose a reason for hiding this comment

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

Please have a look, @realshuting

Name: exceptionName,
Namespace: exceptionNamespace,
Reason: PolicySkipped.String(),
Message: messageBuilder.String(),
Copy link
Member

Choose a reason for hiding this comment

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

Can we also add policy information?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch ! Will fix soon.

@codecov
Copy link

codecov bot commented Jan 12, 2023

Codecov Report

Merging #5987 (7ad98ff) into main (45fe02a) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main    #5987   +/-   ##
=======================================
  Coverage   35.86%   35.87%           
=======================================
  Files         193      193           
  Lines       21078    21075    -3     
=======================================
  Hits         7560     7560           
+ Misses      12684    12681    -3     
  Partials      834      834           
Impacted Files Coverage Δ
pkg/webhooks/utils/event.go 0.00% <0.00%> (ø)

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

eddycharly and others added 3 commits January 13, 2023 08:59
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
@eddycharly eddycharly merged commit 330709a into kyverno:main Jan 13, 2023
@gcp-cherry-pick-bot
Copy link

Cherry-pick failed with Merge error 330709a7b4c435ea315fde6eb52ac764ceb06d61 into temp-cherry-pick-2b299d-release-1.9

@eddycharly eddycharly deleted the exception-events branch January 13, 2023 09:53
eddycharly added a commit to eddycharly/kyverno that referenced this pull request Jan 13, 2023
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
@realshuting realshuting added the cherry-pick-completed The PR was cherry-picked (or merged) to required release branches label Jan 13, 2023
eddycharly added a commit that referenced this pull request Jan 13, 2023
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
MdSahil-oss pushed a commit to MdSahil-oss/kyverno that referenced this pull request Jan 13, 2023
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cherry-pick-completed The PR was cherry-picked (or merged) to required release branches cherry-pick-required milestone 1.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants