[incubator/sparkoperator] fix invalid webhook init job (#23887)

* [sparkoperator] fix invalid webhook init job

Prior to this commit, helm validation for webhook-init-job of
incubator/sparkoperator failed in helm3 with the following error:

    Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(Job.spec): unknown field "metadata" in io.k8s.api.batch.v1.JobSpec

Issue was introduced by https://github.com/helm/charts/pull/23876 by
accident, as other jobs in this chart (incubator/sparkoperator) were not
affected.

Signed-off-by: Oleksandr Kovalchuk <anxolerd@outlook.com>

* Bump chart version

Signed-off-by: Oleksandr Kovalchuk <anxolerd@outlook.com>
This commit is contained in:
Oleksandr Kovalchuk
2020-10-12 06:12:47 -07:00
committed by GitHub
parent e2c16efcfa
commit a70397a23e
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
name: sparkoperator
description: A Helm chart for Spark on Kubernetes operator
version: 0.8.3
version: 0.8.4
appVersion: v1beta2-1.2.0-3.0.0
keywords:
- spark
@@ -10,13 +10,13 @@ metadata:
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
spec:
metadata:
name: {{ include "sparkoperator.fullname" . }}-webhook-init
{{- if .Values.istio.enabled }}
annotations:
"sidecar.istio.io/inject": "false"
{{- end }}
template:
metadata:
name: {{ include "sparkoperator.fullname" . }}-webhook-init
{{- if .Values.istio.enabled }}
annotations:
"sidecar.istio.io/inject": "false"
{{- end }}
spec:
serviceAccountName: {{ include "sparkoperator.serviceAccountName" . }}
restartPolicy: OnFailure