mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Fixes compatibility with 1.16 (#17535)
Signed-off-by: Xiang Dai <764524258@qq.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
cd6a58aa60
commit
07853d2ba0
@@ -1,6 +1,6 @@
|
||||
apiVersion: v1
|
||||
name: rocketchat
|
||||
version: 1.1.12
|
||||
version: 1.1.13
|
||||
appVersion: 1.3.1
|
||||
description: Prepare to take off with the ultimate chat platform, experience the next level of team communications
|
||||
keywords:
|
||||
|
||||
@@ -40,3 +40,14 @@ Create the name of the service account to use
|
||||
{{ default "default" .Values.serviceAccount.name }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Return the apiVerion 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 -}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: {{ template "deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ template "rocketchat.fullname" . }}
|
||||
|
||||
Reference in New Issue
Block a user