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

Commit

Permalink
Add proper indentation to additional zone CoreDNS config
Browse files Browse the repository at this point in the history
  • Loading branch information
kfr2 committed Jul 2, 2020
1 parent cd68fa8 commit 6d5ccb2
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 6d5ccb2

Please sign in to comment.