0

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?

Nepomucen
  • 4,449
  • 3
  • 9
  • 24
alltej
  • 6,787
  • 10
  • 46
  • 87

1 Answers1

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