We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a905f3c commit 5e80e99Copy full SHA for 5e80e99
utils/utils.go
@@ -67,11 +67,12 @@ func GetDNSDomain() string {
67
cname, err := net.LookupCNAME(svc)
68
if err != nil {
69
// If it cannot determine the domain, we default it to "cluster.local"
70
- klog.Infof("determined DNS Domain for cluster should be %q", dnsDomain)
+ klog.Infof("could not determine the domain, the DNS Domain for the cluster will default to %q", dnsDomain)
71
return dnsDomain
72
}
73
74
domain := strings.TrimPrefix(cname, svc)
75
+ domain = strings.TrimPrefix(domain, ".")
76
domain = strings.TrimSuffix(domain, ".")
77
78
klog.Infof("determined DNS Domain for DNS should be %q", domain)
0 commit comments