File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
deployment/helm/reactive-interaction-gateway/templates Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,14 @@ Create chart name and version as used by the chart label.
3030{ {- define " reactive-interaction-gateway.chart" -} }
3131{ {- printf " %s-%s" .Chart.Name .Chart.Version | replace " +" " _" | trunc 63 | trimSuffix " -" -} }
3232{ {- end -} }
33+
34+ { {/*
35+ Return the appropriate apiVersion for deployment.
36+ */} }
37+ { {- define " deployment.apiVersion" -} }
38+ { {- if semverCompare " >=1.9-0" .Capabilities.KubeVersion.GitVersion -} }
39+ { {- print " apps/v1" -} }
40+ { {- else -} }
41+ { {- print " apps/v1beta2" -} }
42+ { {- end -} }
43+ { {- end -} }
Original file line number Diff line number Diff line change 1- apiVersion : apps/v1
1+ apiVersion : {{ template "deployment.apiVersion" . }}
22kind : Deployment
33metadata :
44 name : {{ template "reactive-interaction-gateway.name" . }}
You can’t perform that action at this time.
0 commit comments