From 5fcbc9d2fcae45215af5b9618f2cde194924a56b Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Wed, 17 May 2023 12:39:51 -0700 Subject: [PATCH] Fix permission denied error Signed-off-by: Maksym Pavlenko --- pkg/kubemark/hollow_kubelet.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/kubemark/hollow_kubelet.go b/pkg/kubemark/hollow_kubelet.go index 74db6c95c37..91e47a01bb5 100644 --- a/pkg/kubemark/hollow_kubelet.go +++ b/pkg/kubemark/hollow_kubelet.go @@ -152,6 +152,7 @@ type HollowKubeletOptions struct { func GetHollowKubeletConfig(opt *HollowKubeletOptions) (*options.KubeletFlags, *kubeletconfig.KubeletConfiguration) { testRootDir := utils.MakeTempDirOrDie("hollow-kubelet.", "") podFilePath := utils.MakeTempDirOrDie("static-pods", testRootDir) + podLogsPath := utils.MakeTempDirOrDie("pod-logs", testRootDir) klog.Infof("Using %s as root dir for hollow-kubelet", testRootDir) // Flags struct @@ -210,6 +211,7 @@ func GetHollowKubeletConfig(opt *HollowKubeletOptions) (*options.KubeletFlags, * c.RegisterWithTaints = opt.RegisterWithTaints c.RegisterNode = true c.LocalStorageCapacityIsolation = true + c.PodLogsDir = podLogsPath return f, c }