- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for evictSandboxes (0.5 sec)
-
pkg/kubelet/kuberuntime/kuberuntime_gc.go
} } return nil } // evictSandboxes remove all evictable sandboxes. An evictable sandbox must // meet the following requirements: // 1. not in ready state // 2. contains no containers. // 3. belong to a non-existent (i.e., already removed) pod, or is not the // most recently created sandbox for the pod. func (cgc *containerGC) evictSandboxes(ctx context.Context, evictNonDeletedPods bool) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 15.3K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_gc_test.go
podStateProvider.terminated[s.pod.UID] = struct{}{} } } fakeRuntime.SetFakeSandboxes(fakeSandboxes) fakeRuntime.SetFakeContainers(fakeContainers) err := m.containerGC.evictSandboxes(ctx, test.evictTerminatingPods) assert.NoError(t, err) realRemain, err := fakeRuntime.ListPodSandbox(ctx, nil) assert.NoError(t, err) assert.Len(t, realRemain, len(test.remain))
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 20.6K bytes - Viewed (0)