From 96196162a78013f5f43632a47734fb0e58c1c3b1 Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Tue, 19 Sep 2023 15:40:27 +0200 Subject: [PATCH] test/e2e: structure resources by namespace/kind again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stefan Büringer buringerst@vmware.com --- test/framework/alltypes_helpers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/framework/alltypes_helpers.go b/test/framework/alltypes_helpers.go index a621a0515354..851a70ff7c6a 100644 --- a/test/framework/alltypes_helpers.go +++ b/test/framework/alltypes_helpers.go @@ -184,7 +184,7 @@ func dumpObject(resource runtime.Object, logPath string) { namespace := metaObj.GetNamespace() name := metaObj.GetName() - resourceFilePath := filepath.Clean(path.Join(logPath, kind, namespace, name+".yaml")) + resourceFilePath := filepath.Clean(path.Join(logPath, namespace, kind, name+".yaml")) Expect(os.MkdirAll(filepath.Dir(resourceFilePath), 0750)).To(Succeed(), "Failed to create folder %s", filepath.Dir(resourceFilePath)) f, err := os.OpenFile(resourceFilePath, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0600)