From 7ccdb9092b6657249da52ba8fd6461af6562981a Mon Sep 17 00:00:00 2001 From: kaiyuechen Date: Tue, 23 Aug 2022 14:14:03 +0800 Subject: [PATCH] fix cgroup driver name --- pkg/ensurance/collector/types/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ensurance/collector/types/types.go b/pkg/ensurance/collector/types/types.go index f56b72dd1..085c8f22e 100644 --- a/pkg/ensurance/collector/types/types.go +++ b/pkg/ensurance/collector/types/types.go @@ -60,7 +60,7 @@ const ( func GetCgroupPath(p *v1.Pod, cgroupDriver string) string { cgroupName := GetCgroupName(p) switch cgroupDriver { - case "stytemd": + case "systemd": return cgroupName.ToSystemd() case "cgroupfs": return cgroupName.ToCgroupfs()