Skip to content

Commit

Permalink
Expose webhook-fail-on-error as a helm chart parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
woj-i committed Oct 11, 2022
1 parent 94775cd commit 83ba7fa
Show file tree
Hide file tree
Showing 3 changed files with 4 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.25
version: 1.2.0
appVersion: v1beta2-1.3.7-3.1.1
keywords:
- spark
Expand Down
1 change: 1 addition & 0 deletions charts/spark-operator-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ spec:
- -webhook-svc-name={{ include "spark-operator.fullname" . }}-webhook
- -webhook-config-name={{ include "spark-operator.fullname" . }}-webhook-config
- -webhook-namespace-selector={{ .Values.webhook.namespaceSelector }}
- -webhook-fail-on-error={{ .Values.webhook.failOnError }}
{{- end }}
- -enable-resource-quota-enforcement={{ .Values.resourceQuotaEnforcement.enable }}
{{- if gt (int .Values.replicaCount) 1 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/spark-operator-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ webhook:
# -- The webhook server will only operate on namespaces with this label, specified in the form key1=value1,key2=value2.
# Empty string (default) will operate on all namespaces
namespaceSelector: ""
# -- Policy of failure handling. If it's set to true the namespaceSelector must be defined
failOnError: false
# -- The annotations applied to init job, required to restore certs deleted by the cleanup job during upgrade
initAnnotations:
"helm.sh/hook": pre-install, pre-upgrade
Expand Down

0 comments on commit 83ba7fa

Please sign in to comment.