diff --git a/charts/aws-mountpoint-s3-csi-driver/templates/node.yaml b/charts/aws-mountpoint-s3-csi-driver/templates/node.yaml index b8b8b19..350d292 100644 --- a/charts/aws-mountpoint-s3-csi-driver/templates/node.yaml +++ b/charts/aws-mountpoint-s3-csi-driver/templates/node.yaml @@ -30,11 +30,16 @@ spec: tolerations: {{- if .Values.node.tolerateAllTaints }} - operator: Exists - {{- else }} + {{- else if .Values.node.defaultTolerations }} + - key: CriticalAddonsOnly + operator: Exists + - operator: Exists + effect: NoExecute + tolerationSeconds: 300 + {{- end }} {{- with .Values.node.tolerations }} {{- toYaml . | nindent 8 }} {{- end }} - {{- end }} {{- if .Values.imagePullSecrets }} imagePullSecrets: {{- range .Values.imagePullSecrets }} diff --git a/charts/aws-mountpoint-s3-csi-driver/values.yaml b/charts/aws-mountpoint-s3-csi-driver/values.yaml index 4f2ea87..64a3436 100644 --- a/charts/aws-mountpoint-s3-csi-driver/values.yaml +++ b/charts/aws-mountpoint-s3-csi-driver/values.yaml @@ -34,13 +34,10 @@ node: memory: 40Mi limits: memory: 256Mi + # Tolerates all taints and overrides defaultTolerations tolerateAllTaints: false - tolerations: - - key: CriticalAddonsOnly - operator: Exists - - operator: Exists - effect: NoExecute - tolerationSeconds: 300 + defaultTolerations: true + tolerations: [] affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: