Alvearie / alvearie-helm

repository for the helm chart source and package for Alvearie projects
https://artifacthub.io/packages/helm/linuxforhealth
Apache License 2.0
3 stars 5 forks source link

Failure to upgrade after changing job image #42

Closed lmsurpre closed 3 years ago

lmsurpre commented 3 years ago

With the latest changes to make the schematool job part of the chart instead of a helm hook, I'm seeing errors while trying to upgrade like the following:

Error: UPGRADE FAILED: cannot patch "ibm-fhir-server-schematool" with kind Job: Job.batch "ibm-fhir-server-schematool" is invalid
...WALL OF TEXT HERE...: field is immutable

We need a better way to ensure that the completed jobs are removed prior to the next upgrade.

It looks like kubernetes 1.21 introduced a ttlSecondsAfterFinished which would probably do the job (pun intended). However, it would be nice to have a solution that works on all kubernetes versions.

Maybe just include ttlSecondsAfterFinished behind a Capabilities check for now?