Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetCounterMetricValue (0.39 sec)

  1. pkg/controller/podgc/gc_controller_test.go

    		t.Errorf("Patched pod names (-want,+got):\n%s", diff)
    	}
    }
    
    func testDeletingPodsMetrics(t *testing.T, total int, reason string) {
    	t.Helper()
    
    	actualDeletingPodsTotal, err := metricstestutil.GetCounterMetricValue(metrics.DeletingPodsTotal.WithLabelValues(metav1.NamespaceDefault, reason))
    	if err != nil {
    		t.Errorf("Error getting actualDeletingPodsTotal")
    	}
    	if actualDeletingPodsTotal != float64(total) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 08:16:48 UTC 2024
    - 29K bytes
    - Viewed (0)
  2. pkg/controller/job/job_controller_test.go

    				t.Errorf("Removed %d finalizers, want %d", rmFinalizers, tc.wantRmFinalizers)
    			}
    			if tc.wantErr == nil {
    				completionMode := completionModeStr(job)
    				v, err := metricstestutil.GetCounterMetricValue(metrics.JobPodsFinished.WithLabelValues(completionMode, metrics.Succeeded))
    				if err != nil {
    					t.Fatalf("Obtaining succeeded job_pods_finished_total: %v", err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  3. pkg/proxy/iptables/proxier_test.go

    	// Now force a partial resync error and ensure that it recovers correctly
    	if fp.needFullSync {
    		t.Fatalf("Proxier unexpectedly already needs a full sync?")
    	}
    	partialRestoreFailures, err := testutil.GetCounterMetricValue(metrics.IPTablesPartialRestoreFailuresTotal)
    	if err != nil {
    		t.Fatalf("Could not get partial restore failures metric: %v", err)
    	}
    	if partialRestoreFailures != 0.0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (1)
Back to top