Skip to content

Commit

Permalink
Merge pull request containers#19707 from sstosh/cgroupv1-limit-ignore
Browse files Browse the repository at this point in the history
Ignore the resource limits on cgroups V1 rootless systems
  • Loading branch information
openshift-merge-robot authored Aug 23, 2023
2 parents a9c9877 + c416e45 commit d22c336
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/specgen/generate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func verifyContainerResourcesCgroupV1(s *specgen.SpecGenerator) ([]string, error

// Cgroups V1 rootless system does not support Resource limits
if rootless.IsRootless() {
s.ResourceLimits = nil
return []string{"Resource limits are not supported and ignored on cgroups V1 rootless systems"}, nil
}

Expand Down

0 comments on commit d22c336

Please sign in to comment.