Skip to content

Commit b23c23f

Browse files
authored
Support tolerations (helm#21742)
Signed-off-by: Paolo Radaelli <[email protected]>
1 parent 4b82dae commit b23c23f

File tree

5 files changed

+33
-3
lines changed

5 files changed

+33
-3
lines changed

incubator/sparkoperator/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: sparkoperator
33
description: A Helm chart for Spark on Kubernetes operator
4-
version: 0.6.11
4+
version: 0.6.12
55
appVersion: v1beta2-1.1.1-2.4.5
66
keywords:
77
- spark

incubator/sparkoperator/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ The following table lists the configurable parameters of the Spark operator char
5757
| `metricsPort` | Port for the metrics endpoint | 10254 |
5858
| `metricsEndpoint` | Metrics endpoint | "/metrics" |
5959
| `metricsPrefix` | Prefix for the metrics | "" |
60-
| `podAnnotations` | annotations to be added to pods | `{}` |
60+
| `nodeSelector` | Node labels for pod assignment | `{}` |
61+
| `tolerations` | Tolerations for the sparkoperator deployment | `[]` |
62+
| `podAnnotations` | Annotations to be added to pods | `{}` |
6163
| `resyncInterval` | Informer resync interval in seconds | 30 |
6264
| `webhookPort` | Service port of the webhook server | 8080 |
6365
| `resources` | Resources needed for the sparkoperator deployment | {} |

incubator/sparkoperator/ci/test-values.yaml

+13-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
operatorImageName: gcr.io/spark-operator/spark-operator
2-
operatorVersion: v1beta2-1.1.0-2.4.5
2+
operatorVersion: v1beta2-1.1.1-2.4.5
33
imagePullPolicy: IfNotPresent
44
imagePullSecrets: []
55

@@ -36,6 +36,18 @@ metricsPrefix: ""
3636
##
3737
nodeSelector: {}
3838

39+
## Tolerations for the sparkoperator deployment
40+
##
41+
## Example:
42+
## - key: "toleration=key"
43+
## operator: "Equal"
44+
## value: "value"
45+
## effect: "NoSchedule"
46+
##
47+
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
48+
##
49+
tolerations: []
50+
3951
podAnnotations: {}
4052

4153
## Resources for the sparkoperator deployment

incubator/sparkoperator/templates/spark-operator-deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@ spec:
107107
nodeSelector:
108108
{{ toYaml .Values.nodeSelector | indent 8 }}
109109
{{- end }}
110+
{{- if .Values.tolerations }}
111+
tolerations:
112+
{{ toYaml .Values.tolerations | indent 8 }}
113+
{{- end }}

incubator/sparkoperator/values.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ metricsPrefix: ""
3636
##
3737
nodeSelector: {}
3838

39+
## Tolerations for the sparkoperator deployment
40+
##
41+
## Example:
42+
## - key: "toleration=key"
43+
## operator: "Equal"
44+
## value: "value"
45+
## effect: "NoSchedule"
46+
##
47+
## Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
48+
##
49+
tolerations: []
50+
3951
podAnnotations: {}
4052

4153
## Resources for the sparkoperator deployment

0 commit comments

Comments
 (0)