Ignore cgroup pid support if related feature gates are disabled

k3s-v1.14.4
rafatio 2019-06-15 18:45:27 -03:00 committed by rafael.oliveira
parent 2d20b57594
commit ed402e3629
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ func getSupportedSubsystems() map[subsystem]bool {
supportedSubsystems := map[subsystem]bool{
&cgroupfs.MemoryGroup{}: 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.
supportedSubsystems[&cgroupfs.HugetlbGroup{}] = false