diff --git a/charts/k8s-reporter/templates/cronjob.yaml b/charts/k8s-reporter/templates/cronjob.yaml index 9c0abeaa3..e7dc1d5db 100644 --- a/charts/k8s-reporter/templates/cronjob.yaml +++ b/charts/k8s-reporter/templates/cronjob.yaml @@ -14,6 +14,11 @@ spec: jobTemplate: spec: template: + metadata: + labels: + {{- range $key, $value := .Values.podLabels }} + {{ $key }}: {{ $value }} + {{ end }} spec: serviceAccountName: {{ include "reporter.serviceAccountName" . }} containers: diff --git a/charts/k8s-reporter/values.yaml b/charts/k8s-reporter/values.yaml index dfd33bdf2..1456e77b9 100644 --- a/charts/k8s-reporter/values.yaml +++ b/charts/k8s-reporter/values.yaml @@ -29,6 +29,9 @@ serviceAccount: # -- the cron schedule at which the reporter is triggered to report to Kosli cronSchedule: "*/5 * * * *" +# -- custom labels to add to pods +podLabels: {} + kosliApiToken: # -- the name of the secret containing the kosli API token secretName: "kosli-api-token"