Skip to content

Commit 19d3f17

Browse files
committed
feat(helm): add podAnnotations and podLabels
1 parent 56c19c7 commit 19d3f17

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

helm-chart/csi-driver/templates/csi-linode-controller.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ spec:
1616
labels:
1717
app: csi-linode-controller
1818
role: csi-linode
19+
{{- with .Values.podLabels }}
20+
{{- toYaml . | nindent 8 }}
21+
{{- end }}
22+
{{- with .Values.podAnnotations }}
23+
annotations:
24+
{{- toYaml . | nindent 8 }}
25+
{{- end }}
1926
spec:
2027
securityContext:
2128
seccompProfile:

helm-chart/csi-driver/templates/daemonset.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ spec:
1414
labels:
1515
app: csi-linode-node
1616
role: csi-linode
17+
{{- with .Values.podLabels }}
18+
{{- toYaml . | nindent 8 }}
19+
{{- end }}
20+
{{- with .Values.podAnnotations }}
21+
annotations:
22+
{{- toYaml . | nindent 8 }}
23+
{{- end }}
1724
spec:
1825
securityContext:
1926
seccompProfile:

helm-chart/csi-driver/values.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,9 @@ controller:
103103
nodeSelector: {}
104104
affinity: {}
105105
tolerations: []
106+
107+
# Add custom annotations to all pods
108+
podAnnotations: {}
109+
110+
# Add custom labels to all pods
111+
podLabels: {}

0 commit comments

Comments
 (0)