Skip to content

Conversation

marckhair
Copy link
Contributor

@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 undeploy from Bunnyshell failed

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

  • 🚀 /bns:deploy to redeploy the environment
  • /bns:delete to try again to remove the environment

Copy link

codecov bot commented Jan 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.98%. Comparing base (93a8014) to head (9f53559).
⚠️ Report is 579 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #21552   +/-   ##
=======================================
  Coverage   55.97%   55.98%           
=======================================
  Files         343      343           
  Lines       57527    57527           
=======================================
+ Hits        32202    32206    +4     
+ Misses      22674    22669    -5     
- Partials     2651     2652    +1     

☔ 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
Signed-off-by: Marc Khair <67377306+marckhair@users.noreply.github.com>
@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
Contributor 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
Contributor 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
Contributor 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.

@agaudreault agaudreault merged commit e578b85 into argoproj:master May 7, 2025
32 checks passed
@github-project-automation github-project-automation bot moved this from Ready for final review to Done in Argo CD Review May 7, 2025
LyhengTep pushed a commit to LyhengTep/argo-cd that referenced this pull request May 10, 2025
Signed-off-by: Marc Khair <67377306+marckhair@users.noreply.github.com>
ranakan19 pushed a commit to ranakan19/argo-cd that referenced this pull request May 20, 2025
Signed-off-by: Marc Khair <67377306+marckhair@users.noreply.github.com>
Signed-off-by: Kanika Rana <krana@redhat.com>
olivergondza pushed a commit to olivergondza/argo-cd that referenced this pull request May 20, 2025
Signed-off-by: Marc Khair <67377306+marckhair@users.noreply.github.com>
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
tylerrosnett pushed a commit to StateFarmIns/argo-cd that referenced this pull request May 27, 2025
Signed-off-by: Marc Khair <67377306+marckhair@users.noreply.github.com>
chansuke pushed a commit to chansuke/argo-cd that referenced this pull request Jun 4, 2025
Signed-off-by: Marc Khair <67377306+marckhair@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants