From 2fc506d47c9c89b3f42e4119e7d4727a4a01f99e Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Fri, 29 Sep 2023 16:03:39 +0200 Subject: [PATCH] runner: ensure CRDs are properly labeled Signed-off-by: Hidde Beydals --- internal/runner/runner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/runner/runner.go b/internal/runner/runner.go index 0488054f1..07281d63f 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -441,7 +441,7 @@ func setOriginVisitor(namespace, name string) resource.VisitorFunc { if err != nil { return err } - if err = mergeLabels(info.Object, originLabels(namespace, name)); err != nil { + if err = mergeLabels(info.Object, originLabels(name, namespace)); err != nil { return fmt.Errorf( "%s origin labels could not be updated: %s", resourceString(info), err,