From 0dc94d32134cb2c356ea88cff3ddf331ee470308 Mon Sep 17 00:00:00 2001 From: Sebastian Gaiser Date: Tue, 26 Aug 2025 15:50:46 +0200 Subject: [PATCH] fix(charts,x509-certificate-exporter,deployment,daemonset): add 'app.kubernetes.io/component' label to identify different resources Signed-off-by: Sebastian Gaiser --- .../charts/x509-certificate-exporter/templates/daemonset.yaml | 3 +++ .../charts/x509-certificate-exporter/templates/deployment.yaml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/deploy/charts/x509-certificate-exporter/templates/daemonset.yaml b/deploy/charts/x509-certificate-exporter/templates/daemonset.yaml index d7098df..5a5c6b1 100644 --- a/deploy/charts/x509-certificate-exporter/templates/daemonset.yaml +++ b/deploy/charts/x509-certificate-exporter/templates/daemonset.yaml @@ -11,10 +11,12 @@ metadata: namespace: {{ include "x509-certificate-exporter.namespace" $ }} labels: {{- include "x509-certificate-exporter.labels" $ | nindent 4 }} + app.kubernetes.io/component: {{ $dsName }} spec: selector: matchLabels: {{- include "x509-certificate-exporter.selectorLabels" $ | nindent 6 }} + app.kubernetes.io/component: {{ $dsName }} {{- with default $.Values.hostPathsExporter.updateStrategy $dsDef.updateStrategy }} updateStrategy: {{- . | toYaml | trim | nindent 4 }} @@ -23,6 +25,7 @@ spec: metadata: labels: {{- include "x509-certificate-exporter.labels" $ | nindent 8 }} + app.kubernetes.io/component: {{ $dsName }} {{- with $.Values.podExtraLabels }} {{- . | toYaml | trim | nindent 8 }} {{- end }} diff --git a/deploy/charts/x509-certificate-exporter/templates/deployment.yaml b/deploy/charts/x509-certificate-exporter/templates/deployment.yaml index 73edf90..311c830 100644 --- a/deploy/charts/x509-certificate-exporter/templates/deployment.yaml +++ b/deploy/charts/x509-certificate-exporter/templates/deployment.yaml @@ -8,10 +8,12 @@ metadata: namespace: {{ include "x509-certificate-exporter.namespace" . }} labels: {{- include "x509-certificate-exporter.labels" . | nindent 4 }} + app.kubernetes.io/component: exporter spec: selector: matchLabels: {{- include "x509-certificate-exporter.selectorLabels" . | nindent 6 }} + app.kubernetes.io/component: exporter {{- with .Values.secretsExporter.replicas }} replicas: {{ . }} {{- end }} @@ -23,6 +25,7 @@ spec: metadata: labels: {{- include "x509-certificate-exporter.labels" . | nindent 8 }} + app.kubernetes.io/component: exporter {{- with .Values.podExtraLabels }} {{- . | toYaml | trim | nindent 8 }} {{- end }}