Skip to content

Commit 7855360

Browse files
authored
upkeep, klone upgrade, add support for tolerations, affinity, nodeSelector (#54)
Signed-off-by: Abhijeet V <[email protected]>
1 parent 6b8d6b1 commit 7855360

File tree

24 files changed

+453
-329
lines changed

24 files changed

+453
-329
lines changed

deploy/charts/csi-driver-athenz/templates/daemonset.yaml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ spec:
2020
{{- toYaml . | nindent 8 }}
2121
{{- end }}
2222
serviceAccountName: {{ include "csi-driver-athenz.name" . }}
23-
tolerations:
24-
- effect: NoSchedule
25-
operator: Exists
2623
containers:
2724
- name: node-driver-registrar
2825
image: "{{ template "image" (tuple .Values.app.driver.nodeDriverRegistrarImage $.Chart.AppVersion) }}"
@@ -130,6 +127,18 @@ spec:
130127
{{- with .Values.priorityClassName }}
131128
priorityClassName: {{ . | quote }}
132129
{{- end }}
130+
{{- with .Values.nodeSelector }}
131+
nodeSelector:
132+
{{- toYaml . | nindent 8 }}
133+
{{- end }}
134+
{{- with .Values.affinity }}
135+
affinity:
136+
{{- toYaml . | nindent 8 }}
137+
{{- end }}
138+
{{- with .Values.tolerations }}
139+
tolerations:
140+
{{- toYaml . | nindent 8 }}
141+
{{- end }}
133142

134143
volumes:
135144
# This volume is where the socket for kubelet->driver communication lives

deploy/charts/csi-driver-athenz/templates/deployment.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,19 @@ spec:
5353
{{- with .Values.priorityClassName }}
5454
priorityClassName: {{ . | quote }}
5555
{{- end }}
56+
{{- with .Values.nodeSelector }}
57+
nodeSelector:
58+
{{- toYaml . | nindent 8 }}
59+
{{- end }}
60+
{{- with .Values.affinity }}
61+
affinity:
62+
{{- toYaml . | nindent 8 }}
63+
{{- end }}
64+
{{- with .Values.tolerations }}
65+
tolerations:
66+
{{- toYaml . | nindent 8 }}
67+
{{- end }}
68+
{{- with .Values.topologySpreadConstraints }}
69+
topologySpreadConstraints:
70+
{{- toYaml . | nindent 8 }}
71+
{{- end }}

0 commit comments

Comments
 (0)