Skip to content

Commit

Permalink
Add custom toleration support for webhook jobs (#1383)
Browse files Browse the repository at this point in the history
  • Loading branch information
korjek authored Nov 9, 2021
1 parent 75d69a5 commit 6a0cef3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/spark-operator-chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: spark-operator
description: A Helm chart for Spark on Kubernetes operator
version: 1.1.9
version: 1.1.10
appVersion: v1beta2-1.2.3-3.1.1
keywords:
- spark
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,7 @@ spec:
--data \"{\\\"kind\\\":\\\"DeleteOptions\\\",\\\"apiVersion\\\":\\\"batch/v1\\\",\\\"propagationPolicy\\\":\\\"Foreground\\\"}\" \
https://kubernetes.default.svc/apis/batch/v1/namespaces/{{ .Release.Namespace }}/jobs/{{ include "spark-operator.fullname" . }}-webhook-init"
{{ end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/spark-operator-chart/templates/webhook-init-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,7 @@ spec:
"-p"
]
{{ end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

0 comments on commit 6a0cef3

Please sign in to comment.