From 8e88461511e81d2327e4c1a1315bb58fda1827ca Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 10 May 2019 16:20:55 +0200 Subject: rootless, spec: allow resources with cgroup v2 We were always raising an error when the rootless user attempted to setup resources, but this is not the case anymore with cgroup v2. Signed-off-by: Giuseppe Scrivano --- pkg/util/utils_windows.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pkg/util/utils_windows.go') diff --git a/pkg/util/utils_windows.go b/pkg/util/utils_windows.go index 1e9ccea90..b33733da9 100644 --- a/pkg/util/utils_windows.go +++ b/pkg/util/utils_windows.go @@ -10,3 +10,8 @@ import ( func GetRootlessRuntimeDir() (string, error) { return "", errors.New("this function is not implemented for windows") } + +// IsCgroup2UnifiedMode returns whether we are running in cgroup 2 unified mode. +func IsCgroup2UnifiedMode() (bool, error) { + return false, errors.New("this function is not implemented for windows") +} -- cgit v1.2.3-54-g00ecf