diff --git a/sickhub/cronjobs/Chart.yaml b/sickhub/cronjobs/Chart.yaml index 150e814..ec583ed 100644 --- a/sickhub/cronjobs/Chart.yaml +++ b/sickhub/cronjobs/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: cronjobs description: A generic helm cronjob chart for kubernetes type: application -version: 0.3.0 +version: 0.4.0 appVersion: latest home: https://github.com/SickHub icon: https://raw.githubusercontent.com/SickHub/charts/master/sickhub/cronjobs/icon.png diff --git a/sickhub/cronjobs/ci/scripts-values.yaml b/sickhub/cronjobs/ci/scripts-values.yaml index ef7cd55..75f1b4b 100644 --- a/sickhub/cronjobs/ci/scripts-values.yaml +++ b/sickhub/cronjobs/ci/scripts-values.yaml @@ -24,6 +24,11 @@ configMaps: files: example.sh: ci/files/example.sh +podAnnotations: + testAnnotation: value +potLabels: + testLabel: value + jobs: start: schedule: "* * * * *" diff --git a/sickhub/cronjobs/templates/cronjob.yaml b/sickhub/cronjobs/templates/cronjob.yaml index 1cf7373..ee1ee8c 100644 --- a/sickhub/cronjobs/templates/cronjob.yaml +++ b/sickhub/cronjobs/templates/cronjob.yaml @@ -67,6 +67,9 @@ spec: {{- toYaml . | nindent 12 }} {{- end }} labels: + {{- with .podLabels }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- $chart_selector_labels | nindent 12 }} spec: restartPolicy: {{ default "Never" .restartPolicy }} diff --git a/sickhub/cronjobs/values.yaml b/sickhub/cronjobs/values.yaml index 8f5aadb..75b3b08 100644 --- a/sickhub/cronjobs/values.yaml +++ b/sickhub/cronjobs/values.yaml @@ -114,6 +114,7 @@ clusterrole: # verbs: ["list", "get", "watch", "create", "update", "patch", "delete"] podAnnotations: {} +podLabels: {} podSecurityContext: {} # fsGroup: 2000