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{