We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 77a27b4 + bca00d4 commit 3176b00Copy full SHA for 3176b00
2 files changed
charts/registry-proxy/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/registry-proxy/templates/registry-proxy-daemon.yaml
@@ -1,5 +1,5 @@
{{- if eq .Values.global.registry_location "on-cluster" }}
-apiVersion: extensions/v1beta1
+apiVersion: {{ template "APIVersion" . }}
kind: DaemonSet
metadata:
name: deis-registry-proxy
0 commit comments