Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for podFunc (0.14 sec)

  1. pkg/volume/csi/csi_test.go

    	tests := []struct {
    		name                 string
    		specName             string
    		driver               string
    		volName              string
    		specFunc             func(specName, driver, volName string) *volume.Spec
    		podFunc              func() *api.Pod
    		isInline             bool
    		findPluginShouldFail bool
    		driverSpec           *storage.CSIDriverSpec
    		watchTimeout         time.Duration
    	}{
    		{
    			name:     "PersistentVolume",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 03 15:55:13 UTC 2022
    - 21.1K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/mock_threshold_notifier_test.go

    func (m *MockManager) Start(diskInfoProvider DiskInfoProvider, podFunc ActivePodsFunc, podCleanedUpFunc PodCleanedUpFunc, monitoringInterval time.Duration) {
    	m.ctrl.T.Helper()
    	m.ctrl.Call(m, "Start", diskInfoProvider, podFunc, podCleanedUpFunc, monitoringInterval)
    }
    
    // Start indicates an expected call of Start.
    func (mr *MockManagerMockRecorder) Start(diskInfoProvider, podFunc, podCleanedUpFunc, monitoringInterval any) *gomock.Call {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. pkg/kubelet/eviction/eviction_manager.go

    func (m *managerImpl) Start(diskInfoProvider DiskInfoProvider, podFunc ActivePodsFunc, podCleanedUpFunc PodCleanedUpFunc, monitoringInterval time.Duration) {
    	thresholdHandler := func(message string) {
    		klog.InfoS(message)
    		m.synchronize(diskInfoProvider, podFunc)
    	}
    	if m.config.KernelMemcgNotification {
    		for _, threshold := range m.config.Thresholds {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  4. pkg/kubelet/pleg/generic_test.go

    	}
    }
    
    func TestRelisting(t *testing.T) {
    	testPleg := newTestGenericPLEG()
    	pleg, runtime := testPleg.pleg, testPleg.runtime
    	ch := pleg.Watch()
    	// The first relist should send a PodSync event to each pod.
    	runtime.AllPodList = []*containertest.FakePod{
    		{Pod: &kubecontainer.Pod{
    			ID: "1234",
    			Containers: []*kubecontainer.Container{
    				createTestContainer("c1", kubecontainer.ContainerStateExited),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  5. pkg/kubelet/status/status_manager.go

    // attempted for testing.
    func (m *manager) syncBatch(all bool) int {
    	type podSync struct {
    		podUID    types.UID
    		statusUID kubetypes.MirrorPodUID
    		status    versionedPodStatus
    	}
    
    	var updatedStatuses []podSync
    	podToMirror, mirrorToPod := m.podManager.GetUIDTranslations()
    	func() { // Critical section
    		m.podStatusesLock.RLock()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
Back to top