Skip to content

Commit b742f55

Browse files
bugfix: use correct service-account-issuer in case of custom clusterDomain (#2342)
* fix service account issuer for custom cluster domain * set clusterdomain value in _coredns.tpl
1 parent 11e6756 commit b742f55

File tree

3 files changed

+436
-2
lines changed

3 files changed

+436
-2
lines changed

chart/templates/_coredns.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Corefile: |-
1616
{{- if .Values.networking.advanced.proxyKubelets.byHostname }}
1717
rewrite name regex .*\.nodes\.vcluster\.com kubernetes.default.svc.cluster.local
1818
{{- end }}
19-
kubernetes cluster.local in-addr.arpa ip6.arpa {
19+
kubernetes{{ if and (.Values.networking.advanced.clusterDomain) (ne .Values.networking.advanced.clusterDomain "cluster.local") }} {{ .Values.networking.advanced.clusterDomain }}{{ end }} cluster.local in-addr.arpa ip6.arpa {
2020
{{- if .Values.controlPlane.coredns.embedded }}
2121
kubeconfig /data/vcluster/admin.conf
2222
{{- end }}

0 commit comments

Comments
 (0)