mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #125449 from harche/fix_err
Report correct error after validating the root container
This commit is contained in:
commit
0aab2a3534
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user