Kubernetes post-install job

5/3/2021

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?

-- alltej
kubernetes
kubernetes-helm
kubernetes-jobs

1 Answer

9/30/2021

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
Source: StackOverflow