From 8da771a76fc827f12882573f9db09bc456fd8d4a Mon Sep 17 00:00:00 2001 From: Noam Gal Date: Thu, 17 Nov 2022 13:10:06 -0800 Subject: [PATCH] fixed ApplicationSet kind Signed-off-by: Noam Gal --- cmd/commands/common.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/commands/common.go b/cmd/commands/common.go index 501d80f5..d14ccbc6 100644 --- a/cmd/commands/common.go +++ b/cmd/commands/common.go @@ -200,7 +200,8 @@ func createAppSet(o *createAppSetOptions) ([]byte, error) { appSet := &argocdv1alpha1.ApplicationSet{ TypeMeta: metav1.TypeMeta{ - Kind: argocdv1alpha1.ApplicationSetSchemaGroupVersionKind.Kind, + // do not use argocdv1alpha1.ApplicationSetSchemaGroupVersionKind.Kind because it is "Applicationset" - noticed the lowercase "s" + Kind: "ApplicationSet", APIVersion: argocdv1alpha1.ApplicationSetSchemaGroupVersionKind.GroupVersion().String(), }, ObjectMeta: metav1.ObjectMeta{