Skip to content

Commit 0dc94d3

Browse files
sebastiangaiserSebastian Gaiser
authored andcommitted
fix(charts,x509-certificate-exporter,deployment,daemonset): add 'app.kubernetes.io/component' label to identify different resources
Signed-off-by: Sebastian Gaiser <[email protected]>
1 parent 11d8af4 commit 0dc94d3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

deploy/charts/x509-certificate-exporter/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ metadata:
1111
namespace: {{ include "x509-certificate-exporter.namespace" $ }}
1212
labels:
1313
{{- include "x509-certificate-exporter.labels" $ | nindent 4 }}
14+
app.kubernetes.io/component: {{ $dsName }}
1415
spec:
1516
selector:
1617
matchLabels:
1718
{{- include "x509-certificate-exporter.selectorLabels" $ | nindent 6 }}
19+
app.kubernetes.io/component: {{ $dsName }}
1820
{{- with default $.Values.hostPathsExporter.updateStrategy $dsDef.updateStrategy }}
1921
updateStrategy:
2022
{{- . | toYaml | trim | nindent 4 }}
@@ -23,6 +25,7 @@ spec:
2325
metadata:
2426
labels:
2527
{{- include "x509-certificate-exporter.labels" $ | nindent 8 }}
28+
app.kubernetes.io/component: {{ $dsName }}
2629
{{- with $.Values.podExtraLabels }}
2730
{{- . | toYaml | trim | nindent 8 }}
2831
{{- end }}

deploy/charts/x509-certificate-exporter/templates/deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@ metadata:
88
namespace: {{ include "x509-certificate-exporter.namespace" . }}
99
labels:
1010
{{- include "x509-certificate-exporter.labels" . | nindent 4 }}
11+
app.kubernetes.io/component: exporter
1112
spec:
1213
selector:
1314
matchLabels:
1415
{{- include "x509-certificate-exporter.selectorLabels" . | nindent 6 }}
16+
app.kubernetes.io/component: exporter
1517
{{- with .Values.secretsExporter.replicas }}
1618
replicas: {{ . }}
1719
{{- end }}
@@ -23,6 +25,7 @@ spec:
2325
metadata:
2426
labels:
2527
{{- include "x509-certificate-exporter.labels" . | nindent 8 }}
28+
app.kubernetes.io/component: exporter
2629
{{- with .Values.podExtraLabels }}
2730
{{- . | toYaml | trim | nindent 8 }}
2831
{{- end }}

0 commit comments

Comments
 (0)