Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LabelsMatch (0.14 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/metrics/testutil_test.go

    		t.Fatalf("No metric found with name %s and labels %#+v", name, expectedLabels)
    	}
    
    	for _, mf := range metrics {
    		if mf.GetName() == name {
    			for _, metric := range mf.GetMetric() {
    				if testutil.LabelsMatch(metric, expectedLabels) {
    					gotLabelCount := len(metric.GetLabel())
    					wantLabelCount := len(expectedLabels)
    					if wantLabelCount != gotLabelCount {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 24 04:26:43 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    	familyMatch, labelMatch := false, false
    	for _, mf := range metrics {
    		if mf.GetName() != name {
    			continue
    		}
    
    		familyMatch = true
    		for _, metric := range mf.GetMetric() {
    			if !testutil.LabelsMatch(metric, labelFilter) {
    				continue
    			}
    
    			labelMatch = true
    			sum += int(metric.GetGauge().GetValue())
    		}
    	}
    	if !familyMatch {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  3. cni/pkg/nodeagent/cni-watcher_test.go

    	pluginServer := startCniPluginServer(ctx, "/tmp/test.sock", handlers, dpServer)
    
    	// label the namespace
    	labelsPatch := []byte(fmt.Sprintf(`{"metadata":{"labels":{"%s":"%s"}}}`,
    		constants.DataplaneModeLabel, constants.DataplaneModeAmbient))
    	_, err := client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	client.RunAndWait(ctx.Done())
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/informers_test.go

    	client.RunAndWait(ctx.Done())
    	go handlers.Start()
    
    	// label the namespace
    	labelsPatch := []byte(fmt.Sprintf(`{"metadata":{"labels":{"%s":"%s"}}}`,
    		constants.DataplaneModeLabel, constants.DataplaneModeAmbient))
    	_, err := client.Kube().CoreV1().Namespaces().Patch(ctx, ns.Name,
    		types.MergePatchType, labelsPatch, metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    	waitForMockCalls()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 05:10:23 UTC 2024
    - 22.2K bytes
    - Viewed (0)
Back to top