mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
Add support for resource limits to play kube
Signed-off-by: Jordan Christiansen <xordspar0@gmail.com>
This commit is contained in:
@ -612,6 +612,15 @@ func SkipIfRootlessCgroupsV1(reason string) {
|
||||
}
|
||||
}
|
||||
|
||||
func SkipIfUnprevilegedCPULimits() {
|
||||
info := GetHostDistributionInfo()
|
||||
if isRootless() &&
|
||||
info.Distribution == "fedora" &&
|
||||
(info.Version == "31" || info.Version == "32") {
|
||||
ginkgo.Skip("Rootless Fedora doesn't have permission to set CPU limits before version 33")
|
||||
}
|
||||
}
|
||||
|
||||
func SkipIfRootless(reason string) {
|
||||
checkReason(reason)
|
||||
if os.Geteuid() != 0 {
|
||||
|
Reference in New Issue
Block a user