Commit b7de9bec by Guangbo Chen Committed by Craig Jellick

Update external-dns deployment api version

parent 9341c195
......@@ -3,7 +3,7 @@ description: |
Configure external DNS servers (AWS Route53, Google CloudDNS and others)
for Kubernetes Ingresses and Services
name: rancher-external-dns
version: 0.0.1
version: 0.0.2
appVersion: 0.5.11
home: https://github.com/kubernetes-incubator/external-dns
sources:
......
......@@ -56,4 +56,16 @@ accessKeySecret: {{ .Values.alibabacloud.secretKey }}
{{- else -}}
{{- "" -}}
{{- end -}}
{{- end -}}
{{- define "deployment_api_version" -}}
{{- if .Capabilities.APIVersions.Has "apps/v1" -}}
{{- "apps/v1" -}}
{{- else if .Capabilities.APIVersions.Has "apps/v1beta2" -}}
{{- "apps/v1beta2" -}}
{{- else if .Capabilities.APIVersions.Has "apps/v1beta1" -}}
{{- "apps/v1beta1" -}}
{{- else -}}
{{- "extensions/v1beta1" -}}
{{- end -}}
{{- end -}}
\ No newline at end of file
apiVersion: extensions/v1beta1
apiVersion: {{ template "deployment_api_version" . }}
kind: Deployment
metadata:
labels: {{ include "external-dns.labels" . | indent 4 }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment