mogenius / punq

A slim open-source workload manager for Kubernetes with team collaboration, WebApp, and CLI.
https://punq.dev
Apache License 2.0
70 stars 4 forks source link

Feature/cronjob ttl after finish #8

Closed eriandreas closed 1 year ago

eriandreas commented 1 year ago

according to k8s docs:

https://kubernetes.io/docs/concepts/workloads/controllers/job/#ttl-mechanism-for-finished-jobs

Note: It is recommended to set ttlSecondsAfterFinished field because unmanaged jobs (Jobs that you created directly, and not indirectly through other workload APIs such as CronJob) have a default deletion policy of orphanDependents causing Pods created by an unmanaged Job to be left around after that Job is fully deleted.