Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 368 for tc (0.23 sec)

  1. pkg/volume/csi/csi_client_test.go

    			context.Background(),
    			tc.volID,
    			map[string]string{"device": "/dev/null"},
    			tc.stagingTargetPath,
    			tc.fsType,
    			api.ReadWriteOnce,
    			tc.secrets,
    			map[string]string{"attr0": "val0"},
    			tc.mountOptions,
    			tc.fsGroup,
    		)
    		checkErr(t, tc.mustFail, err)
    
    		volumeMountGroup := nodeClient.GetNodeStagedVolumes()[tc.volID].VolumeMountGroup
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 33.9K bytes
    - Viewed (0)
  2. pkg/controller/serviceaccount/legacy_serviceaccount_token_cleaner.go

    		return
    	}
    
    	go wait.UntilWithContext(ctx, tc.evaluateSATokens, tc.syncInterval)
    
    	<-ctx.Done()
    }
    
    func (tc *LegacySATokenCleaner) evaluateSATokens(ctx context.Context) {
    	logger := klog.FromContext(ctx)
    
    	now := tc.clock.Now().UTC()
    	trackedSince, err := tc.latestPossibleTrackedSinceTime(ctx)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 27 03:52:06 UTC 2023
    - 10K bytes
    - Viewed (0)
  3. pkg/controller/tainteviction/taint_eviction.go

    		tc.broadcaster.StartRecordingToSink(&v1core.EventSinkImpl{Interface: tc.client.CoreV1().Events("")})
    	} else {
    		logger.Error(nil, "kubeClient is nil", "controller", tc.name)
    		klog.FlushAndExit(klog.ExitFlushTimeout, 1)
    	}
    	defer tc.broadcaster.Shutdown()
    	defer tc.nodeUpdateQueue.ShutDown()
    	defer tc.podUpdateQueue.ShutDown()
    
    	// wait for the cache to be synced
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/util/runtime/runtime_test.go

    			shouldError: true,
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			containerRuntime := NewContainerRuntime("")
    			mock := &fakeImpl{}
    			if tc.prepare != nil {
    				tc.prepare(mock)
    			}
    			containerRuntime.SetImpl(mock)
    
    			err := containerRuntime.Connect()
    
    			assert.Equal(t, tc.shouldError, err != nil)
    		})
    	}
    }
    
    func TestIsRunning(t *testing.T) {
    	for _, tc := range []struct {
    		name        string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 06:33:22 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/version_test.go

    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			output, err := kubeadmVersion(tc.input)
    			if (err != nil) != tc.parsingError {
    				t.Fatalf("expected error: %v, got: %v", tc.parsingError, err != nil)
    			}
    			if (output != tc.output) != tc.outputError {
    				t.Fatalf("expected output: %s, got: %s, for input: %s", tc.output, output, tc.input)
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 03:30:51 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. pkg/config/gateway/gateway_test.go

    			expected:            true,
    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			test.SetForTest(t, &features.EnableQUICListeners, tc.enableQUICListeners)
    			actual := IsEligibleForHTTP3Upgrade(tc.server)
    			if actual != tc.expected {
    				t.Errorf("IsEligibleForHTTP3Upgrade(%s) => %t, want %t",
    					tc.server, actual, tc.expected)
    			}
    		})
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 26 05:53:25 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  7. pkg/apis/autoscaling/v2beta2/defaults_test.go

    			expectedSelectPolicy:  string(autoscalingv2.MaxPolicySelect),
    		},
    	}
    	for _, tc := range tests {
    		t.Run(tc.annotation, func(t *testing.T) {
    			scaleDownRules := &autoscalingv2.HPAScalingRules{
    				StabilizationWindowSeconds: tc.stabilizationSeconds,
    				SelectPolicy:               tc.selectPolicy,
    			}
    			if tc.rateDownPods != 0 || tc.rateDownPodsPeriodSeconds != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/rest_test.go

    	tc.startingPod.ResourceVersion = "2"
    	tc.startingPod.APIVersion = examplev1.SchemeGroupVersion.String()
    
    	// pod with rv=3 is found when attempting to persist the update
    	tc.updatePod.Name = name
    	tc.updatePod.Namespace = namespace
    	tc.updatePod.UID = uid
    	tc.updatePod.ResourceVersion = "3"
    	tc.updatePod.APIVersion = examplev1.SchemeGroupVersion.String()
    
    	// patches are submitted with a rv=2
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/cpu_assignment_test.go

    		},
    	}...)
    
    	for _, tc := range testCases {
    		t.Run(tc.description, func(t *testing.T) {
    			result, err := takeByTopologyNUMAPacked(tc.topo, tc.availableCPUs, tc.numCPUs)
    			if tc.expErr != "" && err != nil && err.Error() != tc.expErr {
    				t.Errorf("expected error to be [%v] but it was [%v]", tc.expErr, err)
    			}
    			if !result.Equals(tc.expResult) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 17:31:37 UTC 2023
    - 22.7K bytes
    - Viewed (0)
  10. pkg/apis/core/v1/validation/validation_test.go

    		skipLimitValueCheck: true,
    	}}
    	for _, tc := range errorCase {
    		t.Run(tc.name, func(t *testing.T) {
    			errs := ValidateResourceRequirements(&tc.requirements, field.NewPath("resources"))
    			if len(errs) == 0 {
    				t.Errorf("expected error")
    			}
    			validateNamesAndValuesInDescription(t, tc.requirements.Limits, errs, tc.skipLimitValueCheck, "limit")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 11.2K bytes
    - Viewed (0)
Back to top