mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/spark] Fixes compatibility with 1.16 (#17523)
* Fixes compatibility with 1.16 Signed-off-by: Xiang Dai <764524258@qq.com> * bump up version Signed-off-by: Xiang Dai <764524258@qq.com> * fix a typo Signed-off-by: Xiang Dai <764524258@qq.com> * fix a typo Signed-off-by: Xiang Dai <764524258@qq.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
f08e53c953
commit
a0d217e450
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: spark
|
||||
version: 1.0.2
|
||||
version: 1.0.3
|
||||
appVersion: 1.5.1
|
||||
description: Fast and general-purpose cluster computing system.
|
||||
home: http://spark.apache.org
|
||||
|
||||
@@ -30,3 +30,13 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the apiVersion of deployment.
|
||||
*/}}
|
||||
{{- define "deployment.apiVersion" -}}
|
||||
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
{{- print "extensions/v1beta1" -}}
|
||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||
{{- print "apps/v1" -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -31,7 +31,7 @@ spec:
|
||||
component: "{{ .Release.Name }}-{{ .Values.Master.Component }}"
|
||||
type: {{ .Values.Master.ServiceType }}
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: {{ template "deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "master-fullname" . }}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: {{ template "deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "worker-fullname" . }}
|
||||
|
||||
@@ -10,7 +10,7 @@ metadata:
|
||||
name: {{ template "worker-fullname" . }}
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1beta1
|
||||
apiVersion: {{ template "deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
name: {{ template "worker-fullname" . }}
|
||||
minReplicas: {{ .Values.Worker.Replicas }}
|
||||
@@ -20,4 +20,4 @@ spec:
|
||||
resource:
|
||||
name: cpu
|
||||
targetAverageUtilization: {{ .Values.Worker.CpuTargetPercentage }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -16,7 +16,7 @@ spec:
|
||||
component: "{{ .Release.Name }}-{{ .Values.Zeppelin.Component }}"
|
||||
type: {{ .Values.Zeppelin.ServiceType }}
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: {{ template "deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "zeppelin-fullname" . }}
|
||||
|
||||
@@ -41,4 +41,4 @@ spec:
|
||||
serviceName: {{ template "zeppelin-fullname" . }}
|
||||
servicePort: http
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user