- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for msgUnPath (0.1 sec)
-
internal/config/dns/etcd_dns_test.go
} } } func TestUnPath(t *testing.T) { result1 := msgUnPath("/skydns/local/cluster/staging/service/") if result1 != "service.staging.cluster.local.skydns" { t.Errorf("Failure to get domain from etcd key (with a trailing '/'), expect: 'service.staging.cluster.local.', actually get: '%s'", result1) } result2 := msgUnPath("/skydns/local/cluster/staging/service") if result2 != "service.staging.cluster.local.skydns" {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 28 17:31:12 UTC 2025 - 2.7K bytes - Viewed (0) -
internal/config/dns/dns_path.go
return "" } ll := len(labels) if labels[ll-1] == "." { return strings.Join(labels[:ll-1], ".") + "." } return dns.Fqdn(strings.Join(labels, ".")) } // msgUnPath converts a etcd path to domainName. func msgUnPath(s string) string { ks := strings.Split(strings.Trim(s, etcdPathSeparator), etcdPathSeparator) for i, j := 0, len(ks)-1; i < j; i, j = i+1, j-1 { ks[i], ks[j] = ks[j], ks[i] }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Thu Aug 28 17:31:12 UTC 2025 - 1.9K bytes - Viewed (0) -
internal/config/dns/etcd_dns.go
// /skydns/net/miniocloud/10.0.0.1 that may exist as // dns entry for the server (rather than the bucket // itself). if srvRecord.Key == "" { continue } srvRecord.Key = msgUnPath(srvRecord.Key) srvRecords = append(srvRecords, srvRecord) } sort.Slice(srvRecords, func(i int, j int) bool { return srvRecords[i].Key < srvRecords[j].Key }) return srvRecords, nil }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Feb 18 16:25:55 UTC 2025 - 8K bytes - Viewed (0)