Skip to content

Commit

Permalink
bugfix: use correct service-account-issuer in case of custom clusterD…
Browse files Browse the repository at this point in the history
…omain (#2342)

* fix service account issuer for custom cluster domain

* set clusterdomain value in _coredns.tpl
  • Loading branch information
vardhaman-surana authored Jan 2, 2025
1 parent 11e6756 commit b742f55
Show file tree
Hide file tree
Showing 3 changed files with 436 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chart/templates/_coredns.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Corefile: |-
{{- if .Values.networking.advanced.proxyKubelets.byHostname }}
rewrite name regex .*\.nodes\.vcluster\.com kubernetes.default.svc.cluster.local
{{- end }}
kubernetes cluster.local in-addr.arpa ip6.arpa {
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 {
{{- if .Values.controlPlane.coredns.embedded }}
kubeconfig /data/vcluster/admin.conf
{{- end }}
Expand Down
Loading

0 comments on commit b742f55

Please sign in to comment.