Skip to content

Commit 52c3ec7

Browse files
Add missing API version to NS object
Signed-off-by: GitHub <noreply@github.com>
1 parent 785017e commit 52c3ec7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/clusterctl/client/repository/components.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ func addNamespaceIfMissing(objs []unstructured.Unstructured, targetNamespace str
317317
if !namespaceObjectFound {
318318
objs = append(objs, unstructured.Unstructured{
319319
Object: map[string]interface{}{
320-
"kind": namespaceKind,
320+
"apiVersion": "v1",
321+
"kind": namespaceKind,
321322
"metadata": map[string]interface{}{
322323
"name": targetNamespace,
323324
},

0 commit comments

Comments
 (0)