File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ go_library(
80
80
"//pkg/util/procfs:go_default_library" ,
81
81
"//pkg/util/sysctl:go_default_library" ,
82
82
"//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library" ,
83
+ "//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library" ,
83
84
"//staging/src/k8s.io/apimachinery/pkg/util/version:go_default_library" ,
84
85
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library" ,
85
86
"//staging/src/k8s.io/client-go/tools/record:go_default_library" ,
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import (
31
31
libcontainerconfigs "github.com/opencontainers/runc/libcontainer/configs"
32
32
"k8s.io/klog"
33
33
34
+ utilruntime "k8s.io/apimachinery/pkg/util/runtime"
34
35
"k8s.io/apimachinery/pkg/util/sets"
35
36
utilfeature "k8s.io/apiserver/pkg/util/feature"
36
37
kubefeatures "k8s.io/kubernetes/pkg/features"
@@ -483,7 +484,9 @@ func (m *cgroupManagerImpl) Create(cgroupConfig *CgroupConfig) error {
483
484
484
485
// it may confuse why we call set after we do apply, but the issue is that runc
485
486
// follows a similar pattern. it's needed to ensure cpu quota is set properly.
486
- m .Update (cgroupConfig )
487
+ if err := m .Update (cgroupConfig ); err != nil {
488
+ utilruntime .HandleError (fmt .Errorf ("cgroup update failed %v" , err ))
489
+ }
487
490
488
491
return nil
489
492
}
You can’t perform that action at this time.
0 commit comments