Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GarbageCollect (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
Back to top