Merge pull request #125449 from harche/fix_err

Report correct error after validating the root container
This commit is contained in:
Kubernetes Prow Robot 2024-06-11 22:07:30 -07:00 committed by GitHub
commit 0aab2a3534
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,8 +82,9 @@ func (m *qosContainerManagerImpl) GetQOSContainersInfo() QOSContainersInfo {
func (m *qosContainerManagerImpl) Start(getNodeAllocatable func() v1.ResourceList, activePods ActivePodsFunc) error {
cm := m.cgroupManager
rootContainer := m.cgroupRoot
if !cm.Exists(rootContainer) {
return fmt.Errorf("root container %v doesn't exist", rootContainer)
if err := cm.Validate(rootContainer); err != nil {
return fmt.Errorf("error validating root container %v : %w", rootContainer, err)
}
// Top level for Qos containers are created only for Burstable