Skip to content

Commit da610e4

Browse files
committed
Use per-component matchLabels selector in pod specs (fix #355)
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent bf444c4 commit da610e4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

deployments/helm/nvidia-dra-driver-gpu/templates/controller.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
replicas: 1
2626
selector:
2727
matchLabels:
28-
{{- include "nvidia-dra-driver-gpu.selectorLabels" . | nindent 6 }}
28+
nvidia-dra-driver-gpu-component: controller
2929
template:
3030
metadata:
3131
{{- with .Values.controller.podAnnotations }}
@@ -34,6 +34,7 @@ spec:
3434
{{- end }}
3535
labels:
3636
{{- include "nvidia-dra-driver-gpu.templateLabels" . | nindent 8 }}
37+
nvidia-dra-driver-gpu-component: controller
3738
spec:
3839
{{- if .Values.controller.priorityClassName }}
3940
priorityClassName: {{ .Values.controller.priorityClassName }}

deployments/helm/nvidia-dra-driver-gpu/templates/kubeletplugin.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ metadata:
2424
spec:
2525
selector:
2626
matchLabels:
27-
{{- include "nvidia-dra-driver-gpu.selectorLabels" . | nindent 6 }}
27+
nvidia-dra-driver-gpu-component: kubelet-plugin
2828
{{- with .Values.kubeletPlugin.updateStrategy }}
2929
updateStrategy:
3030
{{- toYaml . | nindent 4 }}
@@ -37,6 +37,7 @@ spec:
3737
{{- end }}
3838
labels:
3939
{{- include "nvidia-dra-driver-gpu.templateLabels" . | nindent 8 }}
40+
nvidia-dra-driver-gpu-component: kubelet-plugin
4041
spec:
4142
{{- if .Values.kubeletPlugin.priorityClassName }}
4243
priorityClassName: {{ .Values.kubeletPlugin.priorityClassName }}

0 commit comments

Comments
 (0)