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?
Asked
Active
Viewed 409 times
0
-
Can you just alter your job so it just always exits "0", even when it fails? – jordanm May 03 '21 at 21:31
-
Yes, I have to chain the bash commands with `./job.sh || exit 0`. It works! Thanks – alltej May 05 '21 at 11:19
1 Answers
1
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

Nepomucen
- 4,449
- 3
- 9
- 24