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?
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:
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?