Skip to content
Discussion options

You must be logged in to vote

Is your Flux HelmRelease being deployed by a Flux Kustomization? If yes, you can use the Flux Kustomization field spec.healthCheckExprs to write custom logic in CEL for assessing the health of each CR type, then use spec.healthChecks to list each object whose health must be assessed:

https://fluxcd.io/flux/components/kustomize/kustomizations/#health-checks

https://fluxcd.io/flux/components/kustomize/kustomizations/#health-check-expressions

https://fluxcd.io/flux/cheatsheets/cel-healthchecks/

https://playcel.undistro.io/

Remember: spec.healthChecks is for objects, spec.healthCheckExprs is for types.

And because it's the Helm chart that will deploy the CRs, you will have to list not only th…

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by matheuscscp
Comment options

You must be logged in to vote
1 reply
@matheuscscp
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants