Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for killedPods (0.08 sec)

  1. pkg/kubelet/preemption/preemption_test.go

    )
    
    type fakePodKiller struct {
    	killedPods          []*v1.Pod
    	errDuringPodKilling bool
    }
    
    func newFakePodKiller(errPodKilling bool) *fakePodKiller {
    	return &fakePodKiller{killedPods: []*v1.Pod{}, errDuringPodKilling: errPodKilling}
    }
    
    func (f *fakePodKiller) clear() {
    	f.killedPods = []*v1.Pod{}
    }
    
    func (f *fakePodKiller) getKilledPods() []*v1.Pod {
    	return f.killedPods
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 10:04:08 UTC 2022
    - 19.2K bytes
    - Viewed (0)
  2. pkg/kubelet/container/testing/fake_runtime.go

    	f.Lock()
    	defer f.Unlock()
    
    	f.CalledFunctions = append(f.CalledFunctions, "KillPod")
    	f.KilledPods = append(f.KilledPods, string(runningPod.ID))
    	for _, c := range runningPod.Containers {
    		f.KilledContainers = append(f.KilledContainers, c.Name)
    	}
    	return f.Err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
Back to top