Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for UpdateContainerFsThresholds (0.24 sec)

  1. pkg/kubelet/eviction/eviction_manager.go

    			splitDiskError := fmt.Errorf("KubeletSeparateDiskGC is turned off but we still have a split filesystem")
    			return nil, splitDiskError
    		}
    		thresholds, err := UpdateContainerFsThresholds(m.config.Thresholds, hasImageFs, splitContainerImageFs)
    		m.config.Thresholds = thresholds
    		if err != nil {
    			klog.ErrorS(err, "eviction manager: found conflicting containerfs eviction. Ignoring.")
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 27 18:55:56 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. pkg/kubelet/eviction/helpers.go

    				Value:      threshold.Value,
    				MinReclaim: threshold.MinReclaim,
    			})
    		}
    	}
    	return append(append([]evictionapi.Threshold{}, thresholds...), additionalThresholds...)
    }
    
    // UpdateContainerFsThresholds will add containerfs eviction hard/soft
    // settings based on container runtime settings.
    // Thresholds are parsed from evictionHard and evictionSoft limits so we will override.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  3. pkg/kubelet/eviction/helpers_test.go

    						Quantity: quantityMustParse("5Gi"),
    					},
    				},
    			},
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.description, func(t *testing.T) {
    			expected, err := UpdateContainerFsThresholds(testCase.thresholdList, testCase.imageFs, testCase.containerFs)
    			if err != nil && !testCase.expectErr {
    				t.Fatalf("got error but did not expect any")
    			}
    			hardContainerFsMatch := -1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
Back to top