Skip to content

Commit

Permalink
Merge pull request #14 from kingdonb/k8s-1-16-chart-update
Browse files Browse the repository at this point in the history
chore(postgres): permit umbrella override api group
  • Loading branch information
Cryptophobia committed Jun 25, 2020
2 parents 743890c + 533d3a6 commit 3f27776
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions charts/database/templates/_helpers.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{{/*
Set apiVersion based on .Capabilities.APIVersions
*/}}
{{- define "APIVersion" -}}
{{- if .Capabilities.APIVersions.Has "apps/v1" -}}
apps/v1
{{- else if .Capabilities.APIVersions.Has "extensions/v1beta1" -}}
extensions/v1beta1
{{- else -}}
apps/v1
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/database/templates/database-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if eq .Values.global.database_location "on-cluster" }}
apiVersion: extensions/v1beta1
apiVersion: {{ template "APIVersion" . }}
kind: Deployment
metadata:
name: deis-database
Expand Down

0 comments on commit 3f27776

Please sign in to comment.