Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 143 for zone2 (0.1 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. pilot/pkg/xds/eds_test.go

    				Protocol: protocol.HTTP,
    			},
    		},
    	}
    	m.AddService(svc)
    	localities := []string{
    		"region1/zone1/subzone1",
    		"region1/zone1/subzone2",
    		"region1/zone2/subzone1",
    		"region2/zone1/subzone1",
    		"region2/zone1/subzone2",
    		"region2/zone2/subzone1",
    		"region2/zone2/subzone2",
    	}
    	for i, locality := range localities {
    		_, _ = i, locality
    		m.AddInstance(&model.ServiceInstance{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 20:58:47 UTC 2024
    - 39.6K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/plugin_test.go

    	}{
    		{
    			name: "node updates label which matches topologyKey",
    			pod: st.MakePod().Name("p").SpreadConstraint(1, "zone", v1.DoNotSchedule, fooSelector, nil, nil, nil, nil).
    				Obj(),
    			oldNode:      st.MakeNode().Name("node-a").Label("zone", "zone1").Obj(),
    			newNode:      st.MakeNode().Name("node-a").Label("zone", "zone2").Obj(),
    			expectedHint: framework.Queue,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 17 06:30:53 UTC 2023
    - 13K bytes
    - Viewed (0)
  4. 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)
  5. pilot/pkg/model/service_test.go

    	differingServiceAccount.Endpoint.ServiceAccount = "service-account-two"
    	differingLocality := exampleInstance.DeepCopy()
    	differingLocality.Endpoint.Locality = Locality{
    		ClusterID: "cluster-id-two",
    		Label:     "region2/zone2/subzone2",
    	}
    	differingLbWeight := exampleInstance.DeepCopy()
    	differingLbWeight.Endpoint.LbWeight = 0
    
    	cases := []struct {
    		comparer *WorkloadInstance
    		comparee *WorkloadInstance
    		shouldEq bool
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  6. pilot/pkg/networking/util/util_test.go

    			},
    		},
    		{
    			name:     "locality with region and zone",
    			locality: "region/zone",
    			want: &core.Locality{
    				Region: "region",
    				Zone:   "zone",
    			},
    		},
    		{
    			name:     "locality with region zone and subzone",
    			locality: "region/zone/subzone",
    			want: &core.Locality{
    				Region:  "region",
    				Zone:    "zone",
    				SubZone: "subzone",
    			},
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 01:17:58 UTC 2024
    - 40K bytes
    - Viewed (0)
  7. pkg/scheduler/internal/cache/node_tree_test.go

    		t.Errorf("Unexpected node tree (-want, +got):\n%s", diff)
    	}
    	if len(nt.zones) != len(expectedTree) {
    		t.Errorf("Number of zones in nodeTree.zones is not expected. Expected: %v, Got: %v", len(expectedTree), len(nt.zones))
    	}
    	for _, z := range nt.zones {
    		if _, ok := expectedTree[z]; !ok {
    			t.Errorf("zone %v is not expected to exist in nodeTree.zones", z)
    		}
    	}
    }
    
    func TestNodeTree_AddNode(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 05 08:00:25 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  8. src/time/zoneinfo_read.go

    	// First the zone information.
    	//	utcoff[4] isdst[1] nameindex[1]
    	nzone := n[NZone]
    	if nzone == 0 {
    		// Reject tzdata files with no zones. There's nothing useful in them.
    		// This also avoids a panic later when we add and then use a fake transition (golang.org/issue/29437).
    		return nil, errBadData
    	}
    	zones := make([]zone, nzone)
    	for i := range zones {
    		var ok bool
    		var n uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  9. pkg/volume/csi/nodeinfomanager/nodeinfomanager_test.go

    			inputTopology: map[string]string{
    				"com.example.csi/zone": "zoneA",
    			},
    			expectedNode: &v1.Node{
    				ObjectMeta: metav1.ObjectMeta{
    					Name:        "node1",
    					Annotations: map[string]string{annotationKeyNodeID: marshall(nodeIDMap{"com.example.csi.driver1": "com.example.csi/csi-node1"})},
    					Labels:      labelMap{"com.example.csi/zone": "zoneA"},
    				},
    			},
    			expectedCSINode: &storage.CSINode{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 17 02:02:59 UTC 2022
    - 34.3K bytes
    - Viewed (0)
  10. src/net/netip/netip.go

    // WithZone returns an IP that's the same as ip but with the provided
    // zone. If zone is empty, the zone is removed. If ip is an IPv4
    // address, WithZone is a no-op and returns ip unchanged.
    func (ip Addr) WithZone(zone string) Addr {
    	if !ip.Is6() {
    		return ip
    	}
    	if zone == "" {
    		ip.z = z6noz
    		return ip
    	}
    	ip.z = unique.Make(addrDetail{IsV6: true, ZoneV6: zone})
    	return ip
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
Back to top