From 34078cccbb5ae8c309eaf8b336a06fb4bf16dcac Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:10:49 +0000 Subject: [PATCH] Refacto tearDownCSI path Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com> --- internal/integ/cluster/teardown.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/integ/cluster/teardown.go b/internal/integ/cluster/teardown.go index d8b96940..4bf46b73 100644 --- a/internal/integ/cluster/teardown.go +++ b/internal/integ/cluster/teardown.go @@ -4,6 +4,7 @@ import ( "context" "fmt" "log/slog" + "path/filepath" "github.com/exoscale/exoscale/csi-driver/internal/integ/flags" @@ -75,7 +76,7 @@ func (c *Cluster) tearDownCSI(ctx context.Context) error { var finalErr error = nil for _, manifestPath := range allManifests { - err := c.K8s.DeleteManifest(ctx, manifestDir+manifestPath) + err := c.K8s.DeleteManifest(ctx, filepath.Join(manifestDir, manifestPath)) if err != nil { slog.Error("failed to delete manifest", "manifest", manifestPath, "err", err)