Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

argocd appset generate doesn't work when login with --core #20692

Open
3 tasks done
OpenGuidou opened this issue Nov 7, 2024 · 0 comments · May be fixed by #20717
Open
3 tasks done

argocd appset generate doesn't work when login with --core #20692

OpenGuidou opened this issue Nov 7, 2024 · 0 comments · May be fixed by #20717
Labels
bug Something isn't working

Comments

@OpenGuidou
Copy link
Contributor

OpenGuidou commented Nov 7, 2024

Checklist:

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

Describe the bug

The appset generate from the argocd CLI doesn't work when being logged with the --core option.

To Reproduce

  • argocd login --core
  • argocd appset generate anyappset.yaml

Expected behavior

Should generate the appset

Screenshots

Version

argocd: v2.13.0+347f221
  BuildDate: 2024-11-04T15:31:20Z
  GitCommit: 347f221adba5599ef4d5f12ee572b2c17d01db4d
  GitTreeState: clean
  GoVersion: go1.23.2
  Compiler: gc
  Platform: linux/amd64
argocd-server: v2.13.0+347f221
  BuildDate: 2024-11-04T15:31:20Z
  GitCommit: 347f221adba5599ef4d5f12ee572b2c17d01db4d
  GitTreeState: clean
  GoVersion: go1.23.2
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v5.4.1 2024-04-04T17:11:54Z
  Helm Version: v3.15.4+gfa9efb0
  Kubectl Version: v0.31.0
  Jsonnet Version: v0.20.0

Logs

ERRO[0000] error generating params                       error="error getting project default: no kind is registered for the type v1alpha1.AppProject in scheme \"pkg/runtime/scheme.go:100\""
ERRO[0000] finished unary call with code Unknown         error="unable to generate Applications of ApplicationSet: error generating applications: error getting project default: no kind is registered for the type v1alpha1.AppProject in scheme \"pkg/runtime/scheme.go:100\"\ntime=\"2024-11-08T09:28:31+01:00\" level=error msg=\"error generating application from params\" applicationset=app error=\"error getting project default: no kind is registered for the type v1alpha1.AppProject in scheme \\\"pkg/runtime/scheme.go:100\\\"\" generator=\"{nil nil &GitGenerator{RepoURL:https://github.com/XX/XX.git,Directories:[]GitDirectoryGeneratorItem{},Files:[]GitFileGeneratorItem{GitFileGeneratorItem{Path:XX/XX/*.json,},},Revision:HEAD,RequeueAfterSeconds:nil,Template:ApplicationSetTemplate{ApplicationSetTemplateMeta:ApplicationSetTemplateMeta{Name:,Namespace:,Labels:map[string]string{},Annotations:map[string]string{},Finalizers:[],},Spec:ApplicationSpec{Source:nil,Destination:ApplicationDestination{Server:,Namespace:,Name:,},Project:,SyncPolicy:nil,IgnoreDifferences:[]ResourceIgnoreDifferences{},Info:[]Info{},RevisionHistoryLimit:nil,Sources:[]ApplicationSource{},},},PathParamPrefix:,Values:map[string]string{},ExtraParameterFiles:[],} nil nil nil nil nil nil nil}\"\n" grpc.code=Unknown grpc.method=Generate grpc.service=applicationset.ApplicationSetService grpc.start_time="2024-11-08T09:28:31+01:00" grpc.time_ms=2.61 span.kind=server system=grpc
@OpenGuidou OpenGuidou added the bug Something isn't working label Nov 7, 2024
@OpenGuidou OpenGuidou linked a pull request Nov 8, 2024 that will close this issue
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant