From f96af93c442d670a5f59da1d8f5ac20f0b0ef26f Mon Sep 17 00:00:00 2001 From: Jonas Reineke Date: Tue, 21 Jan 2025 16:32:04 +0100 Subject: [PATCH] Allow overriding of hardcoded DaemonSet tolerations --- charts/aws-mountpoint-s3-csi-driver/templates/node.yaml | 7 +------ charts/aws-mountpoint-s3-csi-driver/values.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/charts/aws-mountpoint-s3-csi-driver/templates/node.yaml b/charts/aws-mountpoint-s3-csi-driver/templates/node.yaml index 7ec59144..b8b8b19a 100644 --- a/charts/aws-mountpoint-s3-csi-driver/templates/node.yaml +++ b/charts/aws-mountpoint-s3-csi-driver/templates/node.yaml @@ -31,15 +31,10 @@ spec: {{- if .Values.node.tolerateAllTaints }} - operator: Exists {{- else }} - - 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 5c53b1a6..4f2ea870 100644 --- a/charts/aws-mountpoint-s3-csi-driver/values.yaml +++ b/charts/aws-mountpoint-s3-csi-driver/values.yaml @@ -35,6 +35,12 @@ node: limits: memory: 256Mi tolerateAllTaints: false + tolerations: + - key: CriticalAddonsOnly + operator: Exists + - operator: Exists + effect: NoExecute + tolerationSeconds: 300 affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: