- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for SplitLocalityLabel (0.18 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)