Skip to content

Commit 64ac895

Browse files
authored
Merge pull request #59 from pacoxu/cgroup-v1-deprecation
cgroup v1 support is deprecated, change warning to error
2 parents a7fadf6 + 336d4f9 commit 64ac895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validators/cgroup_validator_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func (c *CgroupsValidator) Validate(spec SysSpec) (warns, errs []error) {
114114
requiredCgroupSpec = spec.CgroupsV2
115115
optionalCgroupSpec = spec.CgroupsV2Optional
116116
} else {
117-
warns = append(warns, errors.New("cgroups v1 support is in maintenance mode, please migrate to cgroups v2"))
117+
errs = append(errs, errors.New("cgroups v1 support is deprecated and will be removed in a future release. Please migrate to cgroups v2. To explicitly enable cgroups v1 support, you must set the kubelet configuration option 'FailCgroupV1' to 'false'. For more information see https://git.k8s.io/enhancements/keps/sig-node/5573-cgroup-v1-unsupported"))
118118
subsystems, err = c.getCgroupV1Subsystems()
119119
if err != nil {
120120
return nil, []error{fmt.Errorf("failed to get cgroups v1 subsystems: %w", err)}

0 commit comments

Comments
 (0)