mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Report correct error after validating the root container
Signed-off-by: Harshal Patil <harpatil@redhat.com>
This commit is contained in:
parent
d593c886b1
commit
966d304704
@ -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