[incubator/sparkoperator] Add webhookNamespaceSelector (#22434)

* [incubator/sparkoperator] Add webhookNamespaceSelector

Signed-off-by: Hagai Barel <hagaibarel@gmail.com>

* Bump chart version to 0.7.0

Signed-off-by: Hagai Barel <hagaibarel@gmail.com>
This commit is contained in:
Hagai Barel
2020-05-18 05:23:36 -07:00
committed by GitHub
parent 587a6a2ac4
commit 7bceceaff9
5 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: sparkoperator
description: A Helm chart for Spark on Kubernetes operator
version: 0.6.13
version: 0.7.0
appVersion: v1beta2-1.1.1-2.4.5
keywords:
- spark
+2
View File
@@ -62,6 +62,7 @@ The following table lists the configurable parameters of the Spark operator char
| `podAnnotations` | Annotations to be added to pods | `{}` |
| `resyncInterval` | Informer resync interval in seconds | 30 |
| `webhookPort` | Service port of the webhook server | 8080 |
| `webhookNamespaceSelector`| The webhook will only operate on namespaces with this label, specified in the form key1=value1,key2=value2 | `""` |
| `resources` | Resources needed for the sparkoperator deployment | {} |
| `enableBatchScheduler` | Whether to enable batch scheduler for pod scheduling | false |
| `enableResourceQuotaEnforcement` | Whether to enable the ResourceQuota enforcement for SparkApplication resources. Requires the webhook to be enabled by setting enableWebhook to true. | false |
@@ -69,6 +70,7 @@ The following table lists the configurable parameters of the Spark operator char
| `leaderElection.lockName` | Lock name to use for leader election | `spark-operator-lock` |
| `leaderElection.lockNamespace` | Namespace to use for leader election | (namespace of release) |
| `securityContext` | Defines security context for operator container. | `{}` |
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`.
#### Upgrading
@@ -25,6 +25,9 @@ securityContext: {}
enableWebhook: false
webhookPort: 8080
## The webhook will only operate on namespaces with this label, specified in the form key1=value1,key2=value2
## empty string will operate on all namespaces
webhookNamespaceSelector: ""
enableMetrics: true
metricsPort: 10254
@@ -90,6 +90,7 @@ spec:
- -webhook-port={{ .Values.webhookPort }}
- -webhook-svc-name={{ .Release.Name }}-webhook
- -webhook-config-name={{ include "sparkoperator.fullname" . }}-webhook-config
- -webhook-namespace-selector={{ .Values.webhookNamespaceSelector }}
{{- end }}
{{- if .Values.enableResourceQuotaEnforcement }}
- -enable-resource-quota-enforcement={{ .Values.enableResourceQuotaEnforcement }}
+3
View File
@@ -25,6 +25,9 @@ securityContext: {}
enableWebhook: false
webhookPort: 8080
## The webhook will only operate on namespaces with this label, specified in the form key1=value1,key2=value2
## empty string will operate on all namespaces
webhookNamespaceSelector: ""
enableMetrics: true
metricsPort: 10254