Skip to content

Commit f299b4d

Browse files
committed
feat(cinder-csi-plugin): add support for podLabels and podAnnotations
1 parent 279e27b commit f299b4d

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

charts/cinder-csi-plugin/templates/controllerplugin-deployment.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,16 @@ spec:
2525
metadata:
2626
labels:
2727
{{- include "cinder-csi.controllerplugin.labels" . | nindent 8 }}
28+
{{- with .Values.csi.plugin.controllerPlugin.podLabels }}
29+
{{- toYaml . | nindent 8 }}
30+
{{- end }}
2831
annotations:
2932
{{- with .Values.commonAnnotations }}
3033
{{- toYaml . | nindent 8 }}
3134
{{- end }}
35+
{{- with .Values.csi.plugin.controllerPlugin.podAnnotations }}
36+
{{- toYaml . | nindent 8 }}
37+
{{- end }}
3238
spec:
3339
serviceAccount: csi-cinder-controller-sa
3440
securityContext:

charts/cinder-csi-plugin/templates/nodeplugin-daemonset.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ spec:
1717
metadata:
1818
labels:
1919
{{- include "cinder-csi.nodeplugin.labels" . | nindent 8 }}
20+
{{- with .Values.csi.plugin.nodePlugin.podLabels }}
21+
{{- toYaml . | nindent 8 }}
22+
{{- end }}
2023
annotations:
2124
{{- with .Values.commonAnnotations }}
2225
{{- toYaml . | nindent 8 }}
2326
{{- end }}
27+
{{- with .Values.csi.plugin.nodePlugin.podAnnotations }}
28+
{{- toYaml . | nindent 8 }}
29+
{{- end }}
2430
spec:
2531
serviceAccount: csi-cinder-node-sa
2632
hostNetwork: true

charts/cinder-csi-plugin/values.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ csi:
7676
readOnly: true
7777
nodePlugin:
7878
dnsPolicy: ClusterFirstWithHostNet
79+
# Optional additional annotations to add to the nodePlugin Pods.
80+
podAnnotations: {}
81+
# Optional additional labels to add to the nodePlugin Pods.
82+
podLabels: {}
7983
podSecurityContext: {}
8084
securityContext: {}
8185
# capabilities:
@@ -106,6 +110,10 @@ csi:
106110
# maxSurge is the maximum number of pods that can be
107111
# created over the desired number of pods.
108112
maxSurge: 1
113+
# Optional additional annotations to add to the controllerPlugin Pods.
114+
podAnnotations: {}
115+
# Optional additional labels to add to the controllerPlugin Pods.
116+
podLabels: {}
109117
podSecurityContext: {}
110118
# runAsNonRoot: true
111119
# runAsUser: 65532

0 commit comments

Comments
 (0)