Skip to content

Commit

Permalink
fix: affinity indent error
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhangx committed Jun 4, 2022
1 parent 45b8cc4 commit cc1bfb4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Binary file modified charts/v1.7.0/csi-driver-smb-v1.7.0.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ spec:
{{- end }}
nodeSelector:
kubernetes.io/os: windows
{{- with .Values.node.nodeSelector }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.node.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
priorityClassName: system-node-critical
serviceAccountName: {{ .Values.serviceAccount.node }}
{{- include "smb.pullSecrets" . | indent 6 }}
Expand Down
7 changes: 4 additions & 3 deletions charts/v1.7.0/csi-driver-smb/templates/csi-smb-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ spec:
{{- with .Values.node.nodeSelector }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- if .Values.node.affinity }}
{{- toYaml .Values.node.affinity | nindent 8 }}
{{- end }}
{{- with .Values.node.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- with .Values.linux.tolerations }}
tolerations:
Expand Down

0 comments on commit cc1bfb4

Please sign in to comment.