We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ffb071 commit 533d3a6Copy full SHA for 533d3a6
charts/database/templates/_helpers.tmpl
@@ -0,0 +1,12 @@
1
+{{/*
2
+Set apiVersion based on .Capabilities.APIVersions
3
+*/}}
4
+{{- define "APIVersion" -}}
5
+{{- if .Capabilities.APIVersions.Has "apps/v1" -}}
6
+apps/v1
7
+{{- else if .Capabilities.APIVersions.Has "extensions/v1beta1" -}}
8
+extensions/v1beta1
9
+{{- else -}}
10
11
+{{- end -}}
12
charts/database/templates/database-deployment.yaml
@@ -1,5 +1,5 @@
{{- if eq .Values.global.database_location "on-cluster" }}
-apiVersion: {{ .Values.global.api_group }}
+apiVersion: {{ template "APIVersion" . }}
kind: Deployment
metadata:
name: deis-database
0 commit comments