Skip to content

Commit 265de88

Browse files
rahtrazun
andauthored
Merged namespaced and watchNamespace configuration (#8)
--------- Co-authored-by: Adrian <[email protected]>
1 parent 287f865 commit 265de88

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

charts/external-dns/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: external-dns
33
description: ExternalDNS synchronizes exposed Kubernetes Services and Ingresses with DNS providers.
44
type: application
5-
version: 1.13.0-20230727-1700-adobe
5+
version: 1.13.0-20230808-0900-adobe
66
appVersion: 0.13.5-20230727-1700-adobe
77
keywords:
88
- kubernetes

charts/external-dns/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ Create the name of the service account to use
6868
The image to use
6969
*/}}
7070
{{- define "external-dns.image" -}}
71-
{{- printf "%s:%s" .Values.image.repository (default (printf "v%s" .Chart.AppVersion) .Values.image.tag) }}
71+
{{- printf "%s:%s" .Values.image.repository (default ( .Chart.AppVersion) .Values.image.tag) }}
7272
{{- end }}

charts/external-dns/templates/deployment.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ spec:
7676
{{- if .Values.awsPreferCname }}
7777
- --aws-prefer-cname
7878
{{- end }}
79+
{{- if or .Values.namespaced .Values.watchNamespaces }}
7980
{{- if .Values.watchNamespaces }}
8081
- --namespace={{ .Values.watchNamespaces | join "," }}
82+
{{- else }}
83+
- --namespace={{ .Release.Namespace }}
84+
{{- end }}
85+
{{- end }}
8186
{{- end }}
8287
{{- range .Values.sources }}
8388
- --source={{ . }}
@@ -93,9 +98,6 @@ spec:
9398
{{- if and (eq .Values.txtPrefix "") (ne .Values.txtSuffix "") }}
9499
- --txt-suffix={{ .Values.txtSuffix }}
95100
{{- end }}
96-
{{- if .Values.namespaced }}
97-
- --namespace={{ .Release.Namespace }}
98-
{{- end }}
99101
{{- range .Values.domainFilters }}
100102
- --domain-filter={{ . }}
101103
{{- end }}

0 commit comments

Comments
 (0)