Skip to content

Commit 7c959bd

Browse files
authored
Merge pull request #141 from estroz/bugfix/domain-name-variable
utils/utils.go: GetDNSDomain() processes the correct CNAME value
2 parents 03ac8ed + d539a04 commit 7c959bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func GetDNSDomain() string {
7272
}
7373

7474
domain := strings.TrimPrefix(cname, svc)
75-
domain = strings.TrimSuffix(dnsDomain, ".")
75+
domain = strings.TrimSuffix(domain, ".")
7676

7777
klog.Infof("determined DNS Domain for DNS should be %q", domain)
7878

0 commit comments

Comments
 (0)