Skip to content

Commit

Permalink
Add ability to attach custom pod labels
Browse files Browse the repository at this point in the history
  • Loading branch information
torchello committed Aug 13, 2024
1 parent df57a2b commit bbb5f2a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sickhub/cronjobs/templates/cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions sickhub/cronjobs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ clusterrole:
# verbs: ["list", "get", "watch", "create", "update", "patch", "delete"]

podAnnotations: {}
podLabels: {}

podSecurityContext: {}
# fsGroup: 2000
Expand Down

0 comments on commit bbb5f2a

Please sign in to comment.