Skip to content

Commit

Permalink
#2 - minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianco95 committed Apr 22, 2024
1 parent 55db431 commit f8d9fcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/docker/Delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion pkg/docker/aux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f8d9fcf

Please sign in to comment.