Kubernetes post-install job

575 Views Asked by At

I have a kubernetes job with post-install hook. Sometimes this hook fails but I want the helm upgrade to still succeed and ignore failures in post-install job. Is this doable?

1

There are 1 best solutions below

0
On

For clarity and future visitors with similar requirement, I'm posting a solution as Community Wiki based on hint from @alltej:

Alter your job so it just always exits "0"

For instance:

./job.sh || exit 0