Skip to content

Commit

Permalink
Merged namespaced and watchNamespace configuration (#8)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Adrian <[email protected]>
  • Loading branch information
rahtr and azun authored Aug 8, 2023
1 parent 287f865 commit 265de88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/external-dns/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: external-dns
description: ExternalDNS synchronizes exposed Kubernetes Services and Ingresses with DNS providers.
type: application
version: 1.13.0-20230727-1700-adobe
version: 1.13.0-20230808-0900-adobe
appVersion: 0.13.5-20230727-1700-adobe
keywords:
- kubernetes
Expand Down
2 changes: 1 addition & 1 deletion charts/external-dns/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,5 @@ Create the name of the service account to use
The image to use
*/}}
{{- define "external-dns.image" -}}
{{- printf "%s:%s" .Values.image.repository (default (printf "v%s" .Chart.AppVersion) .Values.image.tag) }}
{{- printf "%s:%s" .Values.image.repository (default ( .Chart.AppVersion) .Values.image.tag) }}
{{- end }}
8 changes: 5 additions & 3 deletions charts/external-dns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,13 @@ spec:
{{- if .Values.awsPreferCname }}
- --aws-prefer-cname
{{- end }}
{{- if or .Values.namespaced .Values.watchNamespaces }}
{{- if .Values.watchNamespaces }}
- --namespace={{ .Values.watchNamespaces | join "," }}
{{- else }}
- --namespace={{ .Release.Namespace }}
{{- end }}
{{- end }}
{{- end }}
{{- range .Values.sources }}
- --source={{ . }}
Expand All @@ -93,9 +98,6 @@ spec:
{{- if and (eq .Values.txtPrefix "") (ne .Values.txtSuffix "") }}
- --txt-suffix={{ .Values.txtSuffix }}
{{- end }}
{{- if .Values.namespaced }}
- --namespace={{ .Release.Namespace }}
{{- end }}
{{- range .Values.domainFilters }}
- --domain-filter={{ . }}
{{- end }}
Expand Down

0 comments on commit 265de88

Please sign in to comment.