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 {