Skip to content

Commit 3331b92

Browse files
maximeguilletMaxime Guillet
andauthored
feat: add podLabels handling to the DaemonSets (#30)
Co-authored-by: Maxime Guillet <[email protected]>
1 parent a2e50bb commit 3331b92

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

charts/eks-node-monitoring-agent/templates/daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ spec:
1515
metadata:
1616
labels:
1717
{{- include "eks-node-monitoring-agent.labels" . | nindent 8 }}
18+
{{- with .Values.nodeAgent.podLabels }}
19+
{{- toYaml . | nindent 8 }}
20+
{{- end }}
1821
spec:
1922
{{- with .Values.nodeAgent.affinity }}
2023
affinity: {{- toYaml . | nindent 8 }}

charts/eks-node-monitoring-agent/templates/dcgm-daemonset.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ spec:
1818
labels:
1919
k8s-app: dcgm-server
2020
version: v1
21+
{{- with .Values.dcgmAgent.podLabels }}
22+
{{- toYaml . | nindent 8 }}
23+
{{- end }}
2124
spec:
2225
{{- with .Values.dcgmAgent.affinity }}
2326
affinity: {{- toYaml . | nindent 8 }}

charts/eks-node-monitoring-agent/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ nodeAgent:
7474
# -- Deployment tolerations for the eks-node-monitoring-agent
7575
tolerations:
7676
- operator: Exists
77+
# -- Pod labels applied to the eks-node-monitoring-agent
78+
podLabels: {}
7779

7880
dcgmAgent:
7981
image:
@@ -120,6 +122,8 @@ dcgmAgent:
120122
resources: {}
121123
# -- Deployment tolerations for the dcgm
122124
tolerations: []
125+
# -- Pod labels applied to the dcgm exporter
126+
podLabels: {}
123127

124128
# -- Update strategy for all daemon sets
125129
updateStrategy:

0 commit comments

Comments
 (0)