Skip to content

Commit

Permalink
upkeep, klone upgrade, add support for tolerations, affinity, nodeSel…
Browse files Browse the repository at this point in the history
…ector (#54)

Signed-off-by: Abhijeet V <[email protected]>
  • Loading branch information
abvaidya authored Dec 6, 2024
1 parent 6b8d6b1 commit 7855360
Show file tree
Hide file tree
Showing 24 changed files with 453 additions and 329 deletions.
15 changes: 12 additions & 3 deletions deploy/charts/csi-driver-athenz/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "csi-driver-athenz.name" . }}
tolerations:
- effect: NoSchedule
operator: Exists
containers:
- name: node-driver-registrar
image: "{{ template "image" (tuple .Values.app.driver.nodeDriverRegistrarImage $.Chart.AppVersion) }}"
Expand Down Expand Up @@ -130,6 +127,18 @@ spec:
{{- with .Values.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

volumes:
# This volume is where the socket for kubelet->driver communication lives
Expand Down
16 changes: 16 additions & 0 deletions deploy/charts/csi-driver-athenz/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,19 @@ spec:
{{- with .Values.priorityClassName }}
priorityClassName: {{ . | quote }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
Loading

0 comments on commit 7855360

Please sign in to comment.