Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for LowThresholdPercent (0.17 sec)

  1. pkg/kubelet/images/image_gc_manager_test.go

    		},
    		{
    			name: "Test for LowThresholdPercent < 0",
    			imageGCPolicy: ImageGCPolicy{
    				LowThresholdPercent: -1,
    			},
    			expectErr: "invalid LowThresholdPercent -1, must be in range [0-100]",
    		},
    		{
    			name: "Test for LowThresholdPercent > 100",
    			imageGCPolicy: ImageGCPolicy{
    				LowThresholdPercent: 101,
    			},
    			expectErr: "invalid LowThresholdPercent 101, must be in range [0-100]",
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 15:38:20 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  2. pkg/kubelet/images/image_gc_manager.go

    	}
    	if policy.LowThresholdPercent < 0 || policy.LowThresholdPercent > 100 {
    		return nil, fmt.Errorf("invalid LowThresholdPercent %d, must be in range [0-100]", policy.LowThresholdPercent)
    	}
    	if policy.LowThresholdPercent > policy.HighThresholdPercent {
    		return nil, fmt.Errorf("LowThresholdPercent %d can not be higher than HighThresholdPercent %d", policy.LowThresholdPercent, policy.HighThresholdPercent)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_test.go

    		kubelet.podManager,
    		kubelet.runtimeCache,
    		fakeRuntime,
    		kubelet.statusManager,
    		fakeHostStatsProvider,
    	)
    	fakeImageGCPolicy := images.ImageGCPolicy{
    		HighThresholdPercent: 90,
    		LowThresholdPercent:  80,
    	}
    	imageGCManager, err := images.NewImageGCManager(fakeRuntime, kubelet.StatsProvider, fakeRecorder, fakeNodeRef, fakeImageGCPolicy, noopoteltrace.NewTracerProvider())
    	assert.NoError(t, err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 106.9K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet.go

    	}
    
    	imageGCPolicy := images.ImageGCPolicy{
    		MinAge:               kubeCfg.ImageMinimumGCAge.Duration,
    		HighThresholdPercent: int(kubeCfg.ImageGCHighThresholdPercent),
    		LowThresholdPercent:  int(kubeCfg.ImageGCLowThresholdPercent),
    	}
    
    	if utilfeature.DefaultFeatureGate.Enabled(features.ImageMaximumGCAge) {
    		imageGCPolicy.MaxAge = kubeCfg.ImageMaximumGCAge.Duration
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (1)
Back to top