external-dns: only set google specific config if they are not empty

This commit is contained in:
Hans Kristian Flaatten
2018-12-17 23:32:32 +01:00
parent f3b466b062
commit 3b2c665cc5
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: external-dns
version: 1.2.3
version: 1.3.0
appVersion: 0.5.9
description: ExternalDNS is a Kubernetes addon that configures public DNS servers with information about exposed Kubernetes services to make them discoverable.
keywords:
@@ -106,8 +106,10 @@ spec:
{{- end }}
{{- if eq .Values.provider "google" }}
{{- if .Values.google.project }}
- --google-project={{ .Values.google.project }}
{{- end }}
{{- end }}
env:
{{- if .Values.image.debug }}
@@ -147,9 +149,11 @@ spec:
{{- end }}
{{- if eq .Values.provider "google" }}
{{- if .Values.google.serviceAccountSecret }}
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/secrets/service-account/credentials.json
{{- end }}
{{- end }}
ports:
- containerPort: {{ .Values.service.port }}
@@ -191,9 +195,11 @@ spec:
{{- end }}
{{- if eq .Values.provider "google" }}
{{- if .Values.google.serviceAccountSecret }}
- name: google-service-account
mountPath: /etc/secrets/service-account/
{{- end }}
{{- end }}
volumes:
{{- if eq .Values.provider "aws" }}
@@ -210,7 +216,9 @@ spec:
{{- end }}
{{- if eq .Values.provider "google" }}
{{- if .Values.google.serviceAccountSecret }}
- name: google-service-account
secret:
secretName: {{ .Values.google.serviceAccountSecret | quote }}
{{- end}}
{{- end}}