Skip to content

Commit 990f281

Browse files
authored
Merge pull request #12200 from Danil-Grigorev/add-missing-api-version
🐛 Add missing API version to NS object
2 parents 785017e + 52c3ec7 commit 990f281

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)