Merge pull request #79339 from rafatio/automated-cherry-pick-of-#79073-upstream-release-1.15

Automated cherry pick of #79073: Ignore cgroup pid support if related feature gates are
k3s-v1.15.3
Kubernetes Prow Robot 2019-06-28 05:35:41 -07:00 committed by GitHub
commit 4ea586a008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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