Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 436 for subset16 (0.32 sec)

  1. pkg/kubelet/cm/cpumanager/cpu_assignment.go

    func (a *cpuAccumulator) isFailed() bool {
    	return a.numCPUsNeeded > a.details.CPUs().Size()
    }
    
    // iterateCombinations walks through all n-choose-k subsets of size k in n and
    // calls function 'f()' on each subset. For example, if n={0,1,2}, and k=2,
    // then f() will be called on the subsets {0,1}, {0,2}. and {1,2}. If f() ever
    // returns 'Break', we break early and exit the loop.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 23:56:21 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/route/route_test.go

    						GroupVersionKind: gvk.DestinationRule,
    						Name:             "acme",
    						Namespace:        "istio-system",
    					},
    					Spec: &networking.DestinationRule{
    						Host:    "*.example.org",
    						Subsets: []*networking.Subset{networkingSubset},
    					},
    				},
    			},
    		})
    
    		proxy := node(cg)
    		hashByDestination := route.GetConsistentHashForVirtualService(cg.PushContext(), proxy, virtualService)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  3. tests/integration/pilot/multicluster_test.go

      hosts:
      - "%s"
    `, apps.B.Config().ClusterLocalFQDN()))
    					},
    				},
    				{
    					"subsets",
    					func(t framework.TestContext) {
    						cfg := tmpl.EvaluateOrFail(t, `
    apiVersion: networking.istio.io/v1beta1
    kind: DestinationRule
    metadata:
      name: mysvc-dr
    spec:
      host: {{.host}}
      subsets:
    {{- range .dst }}
      - name: {{ .Config.Cluster.Name }}
        labels:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. pilot/pkg/model/sidecar_test.go

    					},
    					Tcp: &networking.ConnectionPoolSettings_TCPSettings{
    						ConnectTimeout: &durationpb.Duration{Seconds: 33},
    					},
    				},
    			},
    			Subsets: []*networking.Subset{
    				{
    					Name: "subset1",
    				},
    				{
    					Name: "subset2",
    				},
    			},
    		},
    	}
    	destinationRule3 = config.Config{
    		Meta: config.Meta{
    			Name:      "drRule3",
    			Namespace: "mynamespace",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 09:38:49 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  5. pkg/config/analysis/analyzers/virtualservice/destinationrules.go

    ) bool {
    	name := util.GetResourceNameFromHost(vsNamespace, destination.GetHost())
    	subset := destination.GetSubset()
    
    	// if there's no subset specified, we're done
    	if subset == "" {
    		return true
    	}
    
    	hs := hostAndSubset{
    		host:   name,
    		subset: subset,
    	}
    	if _, ok := destHostsAndSubsets[hs]; ok {
    		return true
    	}
    
    	return false
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Aug 07 15:18:05 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. pkg/config/labels/instance_test.go

    			right:    labels.Instance{"foo": ""},
    			expected: result{false, false},
    		},
    	}
    	for _, c := range cases {
    		var got result
    		got.subsetOf = c.left.SubsetOf(c.right)
    		got.selected = c.left.Match(c.right)
    		if got != c.expected {
    			t.Errorf("%v.SubsetOf(%v) got %v, expected %v", c.left, c.right, got, c.expected)
    		}
    	}
    }
    
    func TestString(t *testing.T) {
    	cases := []struct {
    		input    labels.Instance
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 16 06:54:36 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/cel/filter_test.go

    	}{
    		{
    			name: "expression exceed RuntimeCELCostBudget at fist expression",
    			validations: []ExpressionAccessor{
    				&condition{
    					Expression: "has(object.subsets) && object.subsets.size() < 2",
    				},
    				&condition{
    					Expression: "has(object.subsets)",
    				},
    			},
    			attributes:               newValidAttribute(nil, false),
    			hasParamKind:             false,
    			testRuntimeCELCostBudget: 1,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertThat(set.subSet(1, 4)).containsExactly(1, 2, 3).inOrder();
        assertThat(set.subSet(2, 4)).containsExactly(2, 3).inOrder();
        assertThat(set.subSet(3, 4)).containsExactly(3).inOrder();
        assertThat(set.subSet(3, 3)).isEmpty();
        assertThat(set.subSet(2, 3)).containsExactly(2).inOrder();
        assertThat(set.subSet(1, 3)).containsExactly(1, 2).inOrder();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Feb 19 20:34:55 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease.go

    		if ip.Labels[APIServerIdentityLabel] == serverId {
    			if len(ip.Subsets) > 0 {
    				var ipStr, portStr string
    				if len(ip.Subsets[0].Addresses) > 0 {
    					if len(ip.Subsets[0].Addresses[0].IP) > 0 {
    						ipStr = ip.Subsets[0].Addresses[0].IP
    					}
    				}
    				if len(ip.Subsets[0].Ports) > 0 {
    					portStr = fmt.Sprint(ip.Subsets[0].Ports[0].Port)
    				}
    				fullAddr = net.JoinHostPort(ipStr, portStr)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 24 09:23:05 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/SetsTest.java

        assertEquals(ImmutableSortedSet.of(4, 6, 8, 10), Sets.subSet(set, Range.atLeast(4)));
        assertEquals(ImmutableSortedSet.of(8, 10), Sets.subSet(set, Range.atLeast(7)));
        assertEquals(empty, Sets.subSet(set, Range.atLeast(20)));
    
        assertEquals(set, Sets.subSet(set, Range.greaterThan(0)));
        assertEquals(ImmutableSortedSet.of(6, 8, 10), Sets.subSet(set, Range.greaterThan(4)));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
Back to top