- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for SplitLocalityLabel (0.21 sec)
-
pilot/pkg/serviceregistry/util/label/label.go
if len(k8sNode) > 0 { out[LabelHostname] = k8sNode } if len(networkID) > 0 { out[label.TopologyNetwork.Name] = networkID.String() } return out } // SplitLocalityLabel splits a locality label into region, zone and subzone strings. func SplitLocalityLabel(locality string) (region, zone, subzone string) { items := strings.Split(locality, "/") switch len(items) { case 1: return items[0], "", "" case 2:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 11 03:56:40 UTC 2023 - 2.2K bytes - Viewed (0) -
pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go
Region: region, Zone: zone, Subzone: subzone, } } func getWorkloadEntryLocality(p *networkingv1alpha3.WorkloadEntry) *workloadapi.Locality { region, zone, subzone := labelutil.SplitLocalityLabel(p.GetLocality()) if region == "" && zone == "" && subzone == "" { return nil } return &workloadapi.Locality{ Region: region, Zone: zone, Subzone: subzone, } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 16:51:29 UTC 2024 - 20.9K bytes - Viewed (0) -
pkg/model/proxy.go
func ConvertLocality(locality string) *core.Locality { if locality == "" { return &core.Locality{} } region, zone, subzone := label.SplitLocalityLabel(locality) return &core.Locality{ Region: region, Zone: zone, SubZone: subzone, } } // ALPNH2Only advertises that Proxy is going to use HTTP/2 when talking to the cluster.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Apr 25 17:18:17 UTC 2024 - 18.7K bytes - Viewed (0) -
pilot/pkg/networking/util/util.go
return true } return false } func LocalityMatch(proxyLocality *core.Locality, ruleLocality string) bool { ruleRegion, ruleZone, ruleSubzone := label.SplitLocalityLabel(ruleLocality) regionMatch := ruleRegion == "*" || proxyLocality.GetRegion() == ruleRegion zoneMatch := ruleZone == "*" || ruleZone == "" || proxyLocality.GetZone() == ruleZone
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 13 01:56:28 UTC 2024 - 28.5K bytes - Viewed (0)