Skip to content

Commit

Permalink
Fix helm charts
Browse files Browse the repository at this point in the history
  • Loading branch information
rahtr committed Aug 7, 2023
1 parent 287f865 commit 15d816f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
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 }}
11 changes: 6 additions & 5 deletions charts/external-dns/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ spec:
{{- if .Values.awsPreferCname }}
- --aws-prefer-cname
{{- end }}
{{- if .Values.watchNamespaces }}
- --namespace={{ .Values.watchNamespaces | join "," }}
{{- if .Values.namespaced }}
{{- range .Values.watchNamespaces }}
- --namespace={{ . }}
{{- end }}
{{ else }}
- --namespace={{ .Release.Namespace }}
{{- end }}
{{- range .Values.sources }}
- --source={{ . }}
Expand All @@ -93,9 +97,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 15d816f

Please sign in to comment.