mirror of
https://github.com/vee1e/kubeedge.git
synced 2026-09-01 10:18:33 +00:00
fix container gc
This commit is contained in:
parent
94e4fe195e
commit
28c04843ff
1 changed files with 4 additions and 1 deletions
|
|
@ -1040,7 +1040,10 @@ func (cm *containerManager) listPodsUid() []types.UID {
|
|||
|
||||
func (cm *containerManager) GarbageCollect(gcPolicy kubecontainer.ContainerGCPolicy, ready bool, evictNonDeletedPods bool) error {
|
||||
podsInUse := sets.String{}
|
||||
// TODO: fill this podInUse
|
||||
pods := cm.listPodsUid()
|
||||
for _, podUID := range pods {
|
||||
podsInUse.Insert(string(podUID))
|
||||
}
|
||||
|
||||
err := cm.freeContainer(time.Now(), gcPolicy, podsInUse)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue