mirror of
https://github.com/wahyd4/charts.git
synced 2026-08-20 18:46:11 +10:00
external-dns: only set google specific config if they are not empty
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user