Only inject DO_TOKEN when actually provided (#19866)

Signed-off-by: Martin Hanzík <martin@hanzik.com>
This commit is contained in:
Martin Hanzík
2020-01-06 03:29:35 -08:00
committed by Kubernetes Prow Robot
parent dc9a803dab
commit 43908723bf
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: external-dns
version: 2.13.2
version: 2.13.3
appVersion: 0.5.17
description: ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable.
keywords:
@@ -222,12 +222,14 @@ spec:
{{- end }}
# DigitalOcean environment variables
{{- if eq .Values.provider "digitalocean" }}
{{- if .Values.digitalocean.apiToken }}
- name: DO_TOKEN
valueFrom:
secretKeyRef:
name: {{ template "external-dns.fullname" . }}
key: digitalocean_api_token
{{- end }}
{{- end }}
# Google environment variables
{{- if eq .Values.provider "google" }}
{{- if or .Values.google.serviceAccountSecret .Values.google.serviceAccountKey }}