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

feat(health): add kyverno Policy resource customization #21552

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

Conversation

marckhair
Copy link

@marckhair marckhair commented Jan 17, 2025

Adding custom health check logic for kyverno.io/Policy objects.

@marckhair marckhair requested a review from a team as a code owner January 17, 2025 20:36
Copy link

bunnyshell bot commented Jan 17, 2025

🔴 Preview Environment stopped on Bunnyshell

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🔵 /bns:start to start the environment
  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to remove the environment

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@0ed7c56). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #21552   +/-   ##
=========================================
  Coverage          ?   55.86%           
=========================================
  Files             ?      343           
  Lines             ?    57305           
  Branches          ?        0           
=========================================
  Hits              ?    32016           
  Misses            ?    22647           
  Partials          ?     2642           

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

@marckhair marckhair changed the title feat: add kyverno policy health test feat(health): add kyverno Policy resource customization Jan 22, 2025
@marckhair marckhair force-pushed the feat/add-kyverno-policy-health-test branch from a6756ce to 2917775 Compare January 22, 2025 19:51
@marckhair marckhair requested review from a team as code owners January 22, 2025 19:51
@marckhair marckhair force-pushed the feat/add-kyverno-policy-health-test branch from 7c4701f to 4919c8c Compare January 22, 2025 19:54
@marckhair
Copy link
Author

Can anyone review please? @blakepettersson @crenshaw-dev

Copy link
Contributor

@todaywasawesome todaywasawesome left a comment

Choose a reason for hiding this comment

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

Looks good.

Of course people will still need to customize their ignore differences with kyverno but that's a end user thing.

@marckhair
Copy link
Author

@crenshaw-dev can anyone take a look at this please?


hs.status = "Progressing"
hs.message = "Waiting for Policy to be ready"
return hs
Copy link
Contributor

Choose a reason for hiding this comment

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

Can it ever be unhealthy?

Copy link
Author

Choose a reason for hiding this comment

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

Based on the status conditions I see, I don't think so. I might be wrong, my experience with the Policy objects lifecycle is limited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for final review
Development

Successfully merging this pull request may close these issues.

3 participants