Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for sub_zone (0.23 sec)

  1. pilot/pkg/autoregistration/controller_test.go

    				Weight:         1,
    				Network:        "nw0",
    				Locality:       "rgn1/zone1/subzone1",
    				ServiceAccount: "sa-a",
    			},
    		},
    	}
    	proxy := fakeProxy("10.0.0.1", group, "nw1", "sa")
    	proxy.Labels[model.LocalityLabel] = "rgn2/zone2/subzone2"
    	proxy.XdsNode = fakeNode("rgn2", "zone2", "subzone2")
    	proxy.Locality = proxy.XdsNode.Locality
    
    	wantLabels := map[string]string{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 16 00:00:36 UTC 2024
    - 31.4K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/cluster_builder_test.go

    							ClusterID: "cluster-1",
    							Label:     "region1/zone1/subzone1",
    						},
    						LbWeight: 30,
    						Network:  "filtered-out",
    					},
    				},
    			},
    			expected: []*endpoint.LocalityLbEndpoints{
    				{
    					Locality: &core.Locality{
    						Region:  "region1",
    						Zone:    "zone1",
    						SubZone: "subzone1",
    					},
    					LoadBalancingWeight: &wrappers.UInt32Value{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  3. tests/integration/pilot/locality_test.go

        number: 80
        protocol: HTTP
      resolution: {{.Resolution}}
      endpoints:
      - address: {{.Local}}
        locality: region/zone/subzone
      - address: {{.Remote}}
        locality: notregion/notzone/notsubzone
      {{ if ne .NearLocal "" }}
      - address: {{.NearLocal}}
        locality: "nearregion/zone/subzone"
      {{ end }}
    ---
    apiVersion: networking.istio.io/v1alpha3
    kind: DestinationRule
    metadata:
      name: external-service-locality
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/util/label/label.go

    	out := make(labels.Instance, len(in)+6)
    	for k, v := range in {
    		out[k] = v
    	}
    
    	region, zone, subzone := SplitLocalityLabel(locality)
    	if len(region) > 0 {
    		out[LabelTopologyRegion] = region
    	}
    	if len(zone) > 0 {
    		out[LabelTopologyZone] = zone
    	}
    	if len(subzone) > 0 {
    		out[label.TopologySubzone.Name] = subzone
    	}
    	if len(clusterID) > 0 {
    		out[label.TopologyCluster.Name] = clusterID.String()
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 11 03:56:40 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  5. pkg/model/proxy_test.go

    			name:     "with label",
    			label:    "region/zone/subzone-1",
    			expected: "region/zone/subzone-1",
    		},
    		{
    			name:     "label with k8s label separator",
    			label:    "region" + k8sSeparator + "zone" + k8sSeparator + "subzone-2",
    			expected: "region/zone/subzone-2",
    		},
    		{
    			name:     "label with both k8s label separators and slashes",
    			label:    "region/zone/subzone.2",
    			expected: "region/zone/subzone.2",
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/serviceentry/conversion_test.go

    						"topology.kubernetes.io/zone":   "zone1",
    						"topology.istio.io/subzone":     "subzone1",
    						"topology.istio.io/network":     "network1",
    						"topology.istio.io/cluster":     clusterID,
    					},
    					Address: "1.1.1.1",
    					Network: "network1",
    					Locality: model.Locality{
    						Label:     "region1/zone1/subzone1",
    						ClusterID: cluster.ID(clusterID),
    					},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 39K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/kube/controller/controller_test.go

    		{
    			name: "should return correct az if node has only subzone label",
    			pods: []*corev1.Pod{pod1, pod2},
    			nodes: []*corev1.Node{
    				generateNode("node1", map[string]string{label.TopologySubzone.Name: "subzone1"}),
    				generateNode("node2", map[string]string{label.TopologySubzone.Name: "subzone2"}),
    			},
    			wantAZ: map[*corev1.Pod]string{
    				pod1: "//subzone1",
    				pod2: "//subzone2",
    			},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 85K bytes
    - Viewed (0)
  8. pilot/pkg/serviceregistry/kube/controller/ambient/workloads.go

    	subzone := node.GetLabels()[label.TopologySubzone.Name]
    
    	if region == "" && zone == "" && subzone == "" {
    		return nil
    	}
    
    	return &workloadapi.Locality{
    		Region:  region,
    		Zone:    zone,
    		Subzone: subzone,
    	}
    }
    
    func getWorkloadEntryLocality(p *networkingv1alpha3.WorkloadEntry) *workloadapi.Locality {
    	region, zone, subzone := labelutil.SplitLocalityLabel(p.GetLocality())
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  9. istioctl/pkg/writer/ztunnel/configdump/api.go

    // limitations under the License.
    
    package configdump
    
    type Locality struct {
    	Region  string `json:"region,omitempty"`
    	Zone    string `json:"zone,omitempty"`
    	Subzone string `json:"subzone,omitempty"`
    }
    
    type ZtunnelWorkload struct {
    	WorkloadIPs           []string          `json:"workloadIps"`
    	Waypoint              *GatewayAddress   `json:"waypoint,omitempty"`
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 16:51:29 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/endpoint_builder_test.go

    				ObjectMeta: metav1.ObjectMeta{Name: "fake", Labels: map[string]string{
    					NodeRegionLabelGA:          loc.Region,
    					NodeZoneLabel:              loc.Zone,
    					label.TopologySubzone.Name: loc.SubZone,
    				}},
    				Spec:   v1.NodeSpec{},
    				Status: v1.NodeStatus{},
    			})
    			nodes := kclient.New[*v1.Node](fc)
    			fc.RunAndWait(test.NewStop(t))
    			cc := &Controller{
    				nodes:       nodes,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top