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
commit caf6b67ce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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