From f8d9fcf3feadd2fc97e9f1a081c529238f30dfcb Mon Sep 17 00:00:00 2001 From: Bianco95 Date: Mon, 22 Apr 2024 15:12:36 +0200 Subject: [PATCH] #2 - minor --- pkg/docker/Delete.go | 4 ++-- pkg/docker/aux.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/docker/Delete.go b/pkg/docker/Delete.go index dafebbf..09feb83 100644 --- a/pkg/docker/Delete.go +++ b/pkg/docker/Delete.go @@ -37,8 +37,8 @@ func (h *SidecarHandler) DeleteHandler(w http.ResponseWriter, r *http.Request) { return } - podUID := string(pod.PodUID) - podNamespace := string(req.Namespace) + podUID := string(pod.UID) + podNamespace := string(pod.Namespace) for _, container := range pod.Spec.Containers { diff --git a/pkg/docker/aux.go b/pkg/docker/aux.go index 8b2d9da..43a8099 100644 --- a/pkg/docker/aux.go +++ b/pkg/docker/aux.go @@ -33,7 +33,6 @@ func prepareMounts(Ctx context.Context, config commonIL.InterLinkConfig, data [] for _, podData := range data { podUID := string(podData.Pod.UID) - podNamespace := string(podData.Pod.Namespace) err := os.MkdirAll(config.DataRootFolder+podData.Pod.Namespace+"-"+podUID, os.ModePerm) if err != nil {