Various fixes (#10623)

Signed-off-by: Chaoran Yu <yuchaoran2011@gmail.com>
This commit is contained in:
Chaoran Yu
2019-01-14 15:59:07 -08:00
committed by Kubernetes Prow Robot
parent 2134064cc3
commit 81db4694bc
5 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
name: sparkoperator
description: A Helm chart for Spark on Kubernetes operator
version: 0.1.5
version: 0.1.6
appVersion: v1alpha1-0.5-2.4.0
kubeVersion: ">=1.8.0-0"
keywords:
@@ -55,7 +55,6 @@ spec:
ports:
- containerPort: {{ .Values.metricsPort }}
{{ end }}
command: ["/usr/bin/spark-operator"]
args:
- -v=2
- -namespace={{ .Values.sparkJobNamespace }}
@@ -74,6 +73,6 @@ spec:
- -enable-webhook=true
- -webhook-svc-namespace={{ .Release.Namespace }}
- -webhook-port={{ .Values.webhookPort }}
- -webhook-svc-name={{ include "sparkoperator.fullname" . }}-webhook
- -webhook-svc-name={{ .Release.Name }}-webhook
- -webhook-config-name={{ include "sparkoperator.fullname" . }}-webhook-config
{{- end }}
@@ -4,7 +4,7 @@ kind: Job
metadata:
name: {{ include "sparkoperator.fullname" . }}-cleanup
annotations:
"helm.sh/hook": pre-delete
"helm.sh/hook": pre-delete, pre-upgrade
"helm.sh/hook-delete-policy": hook-succeeded
labels:
app.kubernetes.io/name: {{ include "sparkoperator.name" . }}
@@ -4,7 +4,7 @@ kind: Job
metadata:
name: {{ include "sparkoperator.fullname" . }}-init
annotations:
"helm.sh/hook": post-install
"helm.sh/hook": post-install, post-upgrade
"helm.sh/hook-delete-policy": hook-succeeded
labels:
app.kubernetes.io/name: {{ include "sparkoperator.name" . }}
@@ -20,5 +20,5 @@ spec:
- name: main
image: {{ .Values.operatorImageName }}:{{ .Values.operatorVersion }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
command: ["/usr/bin/gencerts.sh", "-n", "{{ .Release.Namespace }}", "-s", '{{ include "sparkoperator.fullname" . }}-webhook', "-p"]
command: ["/usr/bin/gencerts.sh", "-n", "{{ .Release.Namespace }}", "-s", "{{ .Release.Name }}-webhook", "-p"]
{{ end }}
@@ -2,7 +2,7 @@
kind: Service
apiVersion: v1
metadata:
name: {{ include "sparkoperator.fullname" . }}-webhook
name: {{ .Release.Name }}-webhook
labels:
app.kubernetes.io/name: {{ include "sparkoperator.name" . }}
helm.sh/chart: {{ include "sparkoperator.chart" . }}