Skip to content

Commit

Permalink
Merge pull request #526 from risinger/respecify-toleration
Browse files Browse the repository at this point in the history
Chart option to disable default toleration of all taints
  • Loading branch information
k8s-ci-robot authored Nov 25, 2020
2 parents edc2926 + 2266146 commit 14874af
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions aws-ebs-csi-driver/templates/controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ spec:
affinity: {{ toYaml . | nindent 8 }}
{{- end }}
tolerations:
{{- if .Values.tolerateAllTaints }}
- operator: Exists
{{- with .Values.tolerations }}
{{- end }}
{{- with .Values.tolerations }}
{{ toYaml . | indent 8 }}
{{- end }}
{{- end }}
containers:
- name: ebs-plugin
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
Expand Down
2 changes: 2 additions & 0 deletions aws-ebs-csi-driver/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ spec:
hostNetwork: true
priorityClassName: system-node-critical
tolerations:
{{- if .Values.node.tolerateAllTaints }}
- operator: Exists
{{- end }}
{{- with .Values.node.tolerations }}
{{ toYaml . | indent 8 }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ resources: {}

nodeSelector: {}

tolerateAllTaints: true
tolerations: []

affinity: {}
Expand All @@ -83,6 +84,7 @@ region: ""

node:
podAnnotations: {}
tolerateAllTaints: true
tolerations: []

serviceAccount:
Expand Down

0 comments on commit 14874af

Please sign in to comment.