MCPcopy
hub / github.com/kubernetes/kops / EnsureDotSuffix

Function EnsureDotSuffix

dns-controller/pkg/dns/dnscontroller.go:435–440  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

433}
434
435func EnsureDotSuffix(s string) string {
436 if !strings.HasSuffix(s, ".") {
437 s = s + "."
438 }
439 return s
440}
441
442func (o *dnsOp) findZone(fqdn string) dnsprovider.Zone {
443 zoneName := EnsureDotSuffix(fqdn)

Callers 15

updatePodRecordsMethod · 0.92
updateIngressRecordsMethod · 0.92
updateServiceRecordsMethod · 0.92
listDNSFunction · 0.92
ListMethod · 0.92
ListMethod · 0.92
precreateDNSFunction · 0.92
newDNSOpFunction · 0.85
findZoneMethod · 0.85
deleteRecordsMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestEnsureDotSuffixFunction · 0.68