Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for SubZone (0.14 sec)

  1. pilot/pkg/networking/core/loadbalancer/loadbalancer_test.go

    						Region:  "region1",
    						Zone:    "zone1",
    						SubZone: "subzone1",
    					},
    				},
    				{
    					Locality: &core.Locality{
    						Region:  "region1",
    						Zone:    "zone1",
    						SubZone: "subzone1",
    					},
    				},
    				{
    					Locality: &core.Locality{
    						Region:  "region1",
    						Zone:    "zone1",
    						SubZone: "subzone2",
    					},
    				},
    				{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 23 05:38:57 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. pilot/pkg/networking/util/util_test.go

    				Zone:   "zone",
    			},
    		},
    		{
    			name:     "locality with region zone and subzone",
    			locality: "region/zone/subzone",
    			want: &core.Locality{
    				Region:  "region",
    				Zone:    "zone",
    				SubZone: "subzone",
    			},
    		},
    		{
    			name:     "locality with region zone subzone and rack",
    			locality: "region/zone/subzone/rack",
    			want: &core.Locality{
    				Region:  "region",
    				Zone:    "zone",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. pkg/config/validation/agent/validation.go

    					}
    					if regionZoneSubZoneMap[region][zone][subZone] {
    						return fmt.Errorf("locality %s overlap with previous specified ones", locality)
    					}
    					regionZoneSubZoneMap[region][zone][subZone] = true
    				} else {
    					regionZoneSubZoneMap[region][zone] = map[string]bool{subZone: true}
    				}
    			} else {
    				regionZoneSubZoneMap[region] = map[string]map[string]bool{zone: {subZone: true}}
    			}
    		}
    	}
    
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  10. pkg/bootstrap/config_test.go

    	defer os.Chdir(dir)
    	// prepare a pod label file
    	tempDir := t.TempDir()
    	os.Chdir(tempDir)
    	os.MkdirAll("./etc/istio/pod/", os.ModePerm)
    	os.WriteFile(constants.PodInfoLabelsPath, []byte(`istio-locality="region.zone.subzone"`), 0o600)
    
    	node, err := GetNodeMetaData(MetadataOptions{
    		ID:                          "test",
    		Envs:                        os.Environ(),
    		ExitOnZeroActiveConnections: true,
    	})
    
    	g := NewWithT(t)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top