mirror of https://github.com/k3s-io/k3s
Merge pull request #79338 from rafatio/automated-cherry-pick-of-#79073-upstream-release-1.14
Automated cherry pick of #79073: Ignore cgroup pid support if related feature gates arek3s-v1.14.4
commit
2fcb57ff05
|
@ -326,7 +326,7 @@ func getSupportedSubsystems() map[subsystem]bool {
|
||||||
supportedSubsystems := map[subsystem]bool{
|
supportedSubsystems := map[subsystem]bool{
|
||||||
&cgroupfs.MemoryGroup{}: true,
|
&cgroupfs.MemoryGroup{}: true,
|
||||||
&cgroupfs.CpuGroup{}: true,
|
&cgroupfs.CpuGroup{}: true,
|
||||||
&cgroupfs.PidsGroup{}: true,
|
&cgroupfs.PidsGroup{}: false,
|
||||||
}
|
}
|
||||||
// not all hosts support hugetlb cgroup, and in the absent of hugetlb, we will fail silently by reporting no capacity.
|
// not all hosts support hugetlb cgroup, and in the absent of hugetlb, we will fail silently by reporting no capacity.
|
||||||
supportedSubsystems[&cgroupfs.HugetlbGroup{}] = false
|
supportedSubsystems[&cgroupfs.HugetlbGroup{}] = false
|
||||||
|
|
Loading…
Reference in New Issue