From 631d9f81cbdd10b6569871c3e6fc95467b4f968e Mon Sep 17 00:00:00 2001 From: David Kohl Date: Wed, 9 Jul 2025 08:32:37 -0400 Subject: [PATCH] feat(daemonset-labels): functionality for user defined daemonset pod labels Signed-off-by: David Kohl --- charts/core-dump-handler/templates/daemonset.yaml | 3 +++ charts/core-dump-handler/values.yaml | 1 + 2 files changed, 4 insertions(+) diff --git a/charts/core-dump-handler/templates/daemonset.yaml b/charts/core-dump-handler/templates/daemonset.yaml index f61f473..cf94c85 100644 --- a/charts/core-dump-handler/templates/daemonset.yaml +++ b/charts/core-dump-handler/templates/daemonset.yaml @@ -14,6 +14,9 @@ spec: metadata: labels: name: {{ .Values.daemonset.label }} + {{- with .Values.daemonset.labels }} + {{- toYaml . | nindent 8 }} + {{- end }} annotations: kubectl.kubernetes.io/default-container: "coredump-container" {{- with .Values.daemonset.podAnnotations }} diff --git a/charts/core-dump-handler/values.yaml b/charts/core-dump-handler/values.yaml index 05f8213..7081ed2 100644 --- a/charts/core-dump-handler/values.yaml +++ b/charts/core-dump-handler/values.yaml @@ -37,6 +37,7 @@ daemonset: podAnnotations: {} name: "core-dump-handler" label: "core-dump-ds" + labels: {} hostDirectory: "/var/mnt/core-dump-handler" coreDirectory: "/var/mnt/core-dump-handler/cores" eventDirectory: "/var/mnt/core-dump-handler/events"