lwolf / kube-cleanup-operator

Kubernetes Operator to automatically delete completed Jobs and their Pods
MIT License
498 stars 109 forks source link

Support helm template in values yaml #87

Closed guoyiang closed 2 years ago

guoyiang commented 2 years ago

Allow to use helm template in values.yaml to allow some values to be auto generated during deployment time.

My main purpose is for args section, but adding tpl to various other places in case needed.

For example, without template support, a different override is needed for each namespace cleanup-operator was deployed. With template support, we can simply use below template so that namespace can be set automatically when deploying.

args:
  - --namespace={{ .Release.Namespace }}
lwolf commented 2 years ago

Please provide detailed description of what this change do and why it is needed. (in both commit message and PR description)