Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1877 from kfr2/indent-KubeDns.AdditionalZoneCoreD…
Browse files Browse the repository at this point in the history
…NSConfig

Add proper indentation to additional zone CoreDNS config
  • Loading branch information
dominicgunn committed Jul 2, 2020
2 parents cd68fa8 + 6d5ccb2 commit ae2f65a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions builtin/files/cluster.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,7 @@ kubeDns:
# Allows addition of extra configuration into CoreDNS config map's root zone.
# extraCoreDNSConfig: |
# rewrite name substring demo.app.org app.default.svc.cluster.local
#
# This configuration is injected into the CoreDNS config map after the root
# zone (".") and can be used to add configuration for additional zones.
# additionalZoneCoreDNSConfig: |
Expand Down
2 changes: 1 addition & 1 deletion builtin/files/userdata/cloud-config-controller
Original file line number Diff line number Diff line change
Expand Up @@ -3905,7 +3905,7 @@ write_files:
loadbalance
}
{{- if and (eq .KubeDns.Provider "coredns") .KubeDns.AdditionalZoneCoreDNSConfig }}
{{ .KubeDns.AdditionalZoneCoreDNSConfig }}
{{ .KubeDns.AdditionalZoneCoreDNSConfig | indent 12 }}
{{- end }}
{{- else }}
- path: /srv/kubernetes/manifests/kube-dns-sa.yaml
Expand Down

0 comments on commit ae2f65a

Please sign in to comment.