From 3d89132ac3ad64021d6b7cb92f5969273879c698 Mon Sep 17 00:00:00 2001 From: Jonas Reineke Date: Wed, 22 Jan 2025 07:46:16 +0100 Subject: [PATCH] Ensures that disabling the default tolerations is not a breaking change --- charts/aws-mountpoint-s3-csi-driver/templates/node.yaml | 9 +++++++-- charts/aws-mountpoint-s3-csi-driver/values.yaml | 9 +++------ 2 files changed, 10 insertions(+), 8 deletions(-) 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: