Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for tc (0.11 sec)

  1. pkg/controller/job/job_controller_test.go

    			fakePodControl := controller.FakePodControl{Err: tc.podControllerError, CreateLimit: tc.podLimit}
    			manager.podControl = &fakePodControl
    			manager.podStoreSynced = alwaysReady
    			manager.jobStoreSynced = alwaysReady
    
    			// job & pods setup
    			job := newJob(tc.parallelism, tc.completions, tc.backoffLimit, tc.completionMode)
    			job.Spec.Suspend = ptr.To(tc.suspend)
    			if tc.jobPodReplacementPolicy {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 229.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    				t.Fatalf("Unexpected success")
    			}
    
    			// verify the results
    			if tc.expectAnnotation != "" {
    				out := obj.(*example.Pod)
    				if v, found := out.Annotations[tc.expectAnnotation]; !found {
    					t.Errorf("Expected annotation %q not found", tc.expectAnnotation)
    				} else if v != "true" {
    					t.Errorf("Expected annotation %q has wrong value: %q", tc.expectAnnotation, v)
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  3. pilot/pkg/networking/core/cluster_builder_test.go

    			result := getTLSContext(t, ec.cluster)
    			if diff := cmp.Diff(result, tc.expectTLSContext, protocmp.Transform()); diff != "" {
    				t.Errorf("got diff: `%v", diff)
    			}
    
    			if tc.enableAutoSni {
    				if tc.destRule.GetTrafficPolicy().GetTls().Sni == "" {
    					assert.Equal(t, ec.httpProtocolOptions.UpstreamHttpProtocolOptions.AutoSni, true)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 110.4K bytes
    - Viewed (0)
  4. pilot/pkg/networking/core/cluster_test.go

    			}
    			clusters, removed, delta := cg.DeltaClusters(proxy, tc.configUpdated,
    				&model.WatchedResource{ResourceNames: tc.watchedResourceNames})
    			if delta != tc.usedDelta {
    				t.Errorf("un expected delta, want %v got %v", tc.usedDelta, delta)
    			}
    			assert.Equal(t, removed, tc.removedClusters)
    			assert.Equal(t, xdstest.MapKeys(xdstest.ExtractClusters(clusters)), tc.expectedClusters)
    		})
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  5. pkg/kubelet/kubelet_test.go

    		if !found {
    			t.Fatalf("resource allocation should exist: (pod: %#v, container: %s)", tc.pod, tc.pod.Spec.Containers[0].Name)
    		}
    		assert.Equal(t, tc.expectedPodResourceAllocation[string(tc.pod.UID)][tc.pod.Spec.Containers[0].Name], allocatedResources, tc.name)
    	}
    }
    
    func TestHandlePodResourcesResize(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  6. cmd/metrics-v2.go

    	gatherers := prometheus.Gatherers{
    		registry,
    	}
    
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = funcName
    			tc.ResponseRecorder.LogErrBody = true
    		}
    
    		mfs, err := gatherers.Gather()
    		if err != nil && len(mfs) == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 131.9K bytes
    - Viewed (0)
Back to top