Merge pull request #79073 from rafatio/cgroup-pid-not-required

Ignore cgroup pid support if related feature gates are disabled
This commit is contained in:
Kubernetes Prow Robot
2019-06-21 18:52:50 -07:00
committed by GitHub

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