Skip to content

Commit

Permalink
Ensures that disabling the default tolerations is not a breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-rei committed Jan 22, 2025
1 parent f96af93 commit 3d89132
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 7 additions & 2 deletions charts/aws-mountpoint-s3-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
9 changes: 3 additions & 6 deletions charts/aws-mountpoint-s3-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3d89132

Please sign in to comment.