- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for GarbageCollect (0.18 sec)
-
pkg/kubelet/kuberuntime/kuberuntime_gc.go
} } } return nil } // GarbageCollect removes dead containers using the specified container gc policy. // Note that gc policy is not applied to sandboxes. Sandboxes are only removed when they are // not ready and containing no containers. // // GarbageCollect consists of the following steps:
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/container/testing/runtime_mock.go
} // GarbageCollect mocks base method. func (m *MockRuntime) GarbageCollect(ctx context.Context, gcPolicy container.GCPolicy, allSourcesReady, evictNonDeletedPods bool) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GarbageCollect", ctx, gcPolicy, allSourcesReady, evictNonDeletedPods) ret0, _ := ret[0].(error) return ret0 } // GarbageCollect indicates an expected call of GarbageCollect.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 08:12:16 UTC 2024 - 27K bytes - Viewed (0) -
pkg/kubelet/images/image_gc_manager_test.go
AvailableBytes: uint64Ptr(600), CapacityBytes: uint64Ptr(1000), } mockStatsProvider.EXPECT().ImageFsStats(gomock.Any()).Return(imageStats, imageStats, nil) assert.NoError(t, manager.GarbageCollect(ctx, time.Now())) } func TestGarbageCollectCadvisorFailure(t *testing.T) { ctx := context.Background() policy := ImageGCPolicy{ HighThresholdPercent: 90, LowThresholdPercent: 80, }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 15:38:20 UTC 2024 - 29.2K bytes - Viewed (0) -
pkg/kubelet/container/testing/fake_runtime.go
f.ImageList = append(f.ImageList[:index], f.ImageList[index+1:]...) return f.Err } func (f *FakeRuntime) GarbageCollect(_ context.Context, gcPolicy kubecontainer.GCPolicy, ready bool, evictNonDeletedPods bool) error { f.Lock() defer f.Unlock() f.CalledFunctions = append(f.CalledFunctions, "GarbageCollect") 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) -
pkg/kubelet/images/image_gc_manager.go
delete(im.imageRecords, image) } } return imagesInUse, nil } func (im *realImageGCManager) GarbageCollect(ctx context.Context, beganGC time.Time) error { ctx, otelSpan := im.tracer.Start(ctx, "Images/GarbageCollect") defer otelSpan.End() freeTime := time.Now() images, err := im.imagesInEvictionOrder(ctx, freeTime) if err != nil { return err }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 06:25:43 UTC 2024 - 19.4K bytes - Viewed (0) -
pkg/kubelet/container/runtime.go
// specifies whether the runtime returns all containers including those already // exited and dead containers (used for garbage collection). GetPods(ctx context.Context, all bool) ([]*Pod, error) // GarbageCollect removes dead containers using the specified container gc policy // If allSourcesReady is not true, it means that kubelet doesn't have the // complete list of pods from all available sources (e.g., apiserver, http,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 00:05:23 UTC 2024 - 27.8K bytes - Viewed (0)