diff --git a/Makefile b/Makefile index e74f24e..87b95b2 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ lint: helm lint flow template: - helm template flow-helm-chart flow --debug --values flow/values.yaml + helm template flow-helm-chart flow --values flow/values.yaml bundle: make lint diff --git a/flow/templates/cronjob.yml b/flow/templates/cronjob.yml index eca0f77..c577ca2 100644 --- a/flow/templates/cronjob.yml +++ b/flow/templates/cronjob.yml @@ -22,6 +22,12 @@ spec: backoffLimit: {{ .Values.cronJob.backoffLimit | default 5 }} backoffLimitPerIndex: {{ .Values.cronJob.backoffLimitPerIndex }} template: + {{ if and .Values.cronJob.metadata (not (empty .Values.cronJob.metadata)) }} + metadata: + {{ range $k, $v := .Values.cronJob.metadata }} + {{ $k }}: {{ $v }} + {{- end }} + {{- end }} spec: {{ if and .Values.cronJob.containers (not (empty .Values.cronJob.containers ) ) }} containers: diff --git a/flow/values.yaml b/flow/values.yaml index b43a436..4c8dfe5 100644 --- a/flow/values.yaml +++ b/flow/values.yaml @@ -118,6 +118,7 @@ cronJob: namespace: default schedule: "59 23 28-31 * *" containers: { } + metadata: { } persistentVolume: enabled: false