Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions charts/k8s-reporter/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ spec:
jobTemplate:
spec:
template:
metadata:
labels:
{{- range $key, $value := .Values.podLabels }}
{{ $key }}: {{ $value }}
{{ end }}
spec:
serviceAccountName: {{ include "reporter.serviceAccountName" . }}
containers:
Expand Down
3 changes: 3 additions & 0 deletions charts/k8s-reporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Loading