Skip to content

Commit 631d9f8

Browse files
committed
feat(daemonset-labels): functionality for user defined daemonset pod labels
Signed-off-by: David Kohl <[email protected]>
1 parent c315d2d commit 631d9f8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

charts/core-dump-handler/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ spec:
1414
metadata:
1515
labels:
1616
name: {{ .Values.daemonset.label }}
17+
{{- with .Values.daemonset.labels }}
18+
{{- toYaml . | nindent 8 }}
19+
{{- end }}
1720
annotations:
1821
kubectl.kubernetes.io/default-container: "coredump-container"
1922
{{- with .Values.daemonset.podAnnotations }}

charts/core-dump-handler/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ daemonset:
3737
podAnnotations: {}
3838
name: "core-dump-handler"
3939
label: "core-dump-ds"
40+
labels: {}
4041
hostDirectory: "/var/mnt/core-dump-handler"
4142
coreDirectory: "/var/mnt/core-dump-handler/cores"
4243
eventDirectory: "/var/mnt/core-dump-handler/events"

0 commit comments

Comments
 (0)