Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for SubZone (0.19 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. pkg/bootstrap/option/instances.go

    }
    
    func Region(value string) Instance {
    	return newOptionOrSkipIfZero("region", value)
    }
    
    func Zone(value string) Instance {
    	return newOptionOrSkipIfZero("zone", value)
    }
    
    func SubZone(value string) Instance {
    	return newOptionOrSkipIfZero("sub_zone", value)
    }
    
    func NodeMetadata(meta *model.BootstrapNodeMetadata, rawMeta map[string]any) Instance {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:02:38 UTC 2024
    - 9K bytes
    - Viewed (0)
  8. src/net/netip/uint128.go

    func (u uint128) or(m uint128) uint128 {
    	return uint128{u.hi | m.hi, u.lo | m.lo}
    }
    
    // not returns the bitwise NOT of u.
    func (u uint128) not() uint128 {
    	return uint128{^u.hi, ^u.lo}
    }
    
    // subOne returns u - 1.
    func (u uint128) subOne() uint128 {
    	lo, borrow := bits.Sub64(u.lo, 1, 0)
    	return uint128{u.hi - borrow, lo}
    }
    
    // addOne returns u + 1.
    func (u uint128) addOne() uint128 {
    	lo, carry := bits.Add64(u.lo, 1, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 07 21:28:44 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  9. src/net/netip/uint128_test.go

    		{uint128{1, 1}, sub1, uint128{1, 0}},
    	}
    	for _, tt := range tests {
    		var got uint128
    		switch tt.op {
    		case add1:
    			got = tt.in.addOne()
    		case sub1:
    			got = tt.in.subOne()
    		default:
    			panic("bogus op")
    		}
    		if got != tt.want {
    			t.Errorf("%v add %d = %v; want %v", tt.in, tt.op, got, tt.want)
    		}
    	}
    }
    
    func TestBitsSetFrom(t *testing.T) {
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 02 01:28:01 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  10. src/net/netip/inlining_test.go

    		"appendDecimal",
    		"appendHex",
    		"uint128.addOne",
    		"uint128.and",
    		"uint128.bitsClearedFrom",
    		"uint128.bitsSetFrom",
    		"uint128.isZero",
    		"uint128.not",
    		"uint128.or",
    		"uint128.subOne",
    		"uint128.xor",
    	}
    	switch runtime.GOARCH {
    	case "amd64", "arm64":
    		// These don't inline on 32-bit.
    		wantInlinable = append(wantInlinable,
    			"Addr.AsSlice",
    			"Addr.Next",
    			"Addr.Prev",
    		)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top