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: cleanup policy validation #5514

Merged
merged 7 commits into from
Dec 1, 2022

Conversation

eddycharly
Copy link
Member

Explanation

This PR improves cleanup policy validation by checking permissions to delete kinds in the policy.

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

codecov bot commented Nov 30, 2022

Codecov Report

Merging #5514 (1060621) into main (1bf4455) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #5514   +/-   ##
=======================================
  Coverage   36.44%   36.44%           
=======================================
  Files         171      171           
  Lines       19137    19137           
=======================================
  Hits         6974     6974           
  Misses      11371    11371           
  Partials      792      792           

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

Copy link
Member

@realshuting realshuting left a comment

Choose a reason for hiding this comment

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

Need to resolve conflicts.

pkg/validation/cleanuppolicy/validate.go Outdated Show resolved Hide resolved
@realshuting realshuting self-assigned this Nov 30, 2022
eddycharly and others added 4 commits November 30, 2022 20:21
Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.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>
@realshuting realshuting merged commit db9faf5 into kyverno:main Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants