Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SplitLocalityLabel (0.12 sec)

  1. 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)
Back to top