feat: Allow the ability to configure garbage collection on schema-job.
What was changed
This PR gives the user the ability to configure schema-job garbage collection. Specifically the ability to enable or disable the garbage collection altogether as well as specify the desired time before garbage collection runs against the job if enabled.
See Here for more information about kubernetes garbage collection on job resources.
Why?
Currently garbage collection (.spec.ttlSecondsAfterFinished) is hard coded in the server-job manifest. This means that the job will always delete itself after the specified value (currently 86400). In some cases users may want to either configure the number of seconds before deleting the job manifest, or they may want to disable this garbage collection altogether. This PR takes care of both of those scenarios.
Checklist
-
Closes https://github.com/temporalio/helm-charts/issues/735
-
How was this tested: The chart was validated using helm template --debug as well as packaging it (helm package) and using it in a deployment.
-
Any docs updates needed? No