Argocd application creation fails
Opened this issue · 11 comments
What happened?
Argocd application creation fails with error observe failed: cannot list Argocd application: rpc error: code = NotFound desc = application 'example-application-kubeconfig' not found
How can we reproduce it?
Apply this manifest https://github.com/crossplane-contrib/provider-argocd/blob/release-0.5/examples/application/application.yaml.
What environment did it happen in?
Crossplane version: v0.39.0
Crossplane Provider argocd version: v0.5.0
I see we are hitting this: https://github.com/crossplane-contrib/provider-argocd/blob/release-0.5/pkg/controller/applications/controller.go#L113. Ideally, do we need to set nil instead of error there?
@maximilianbraun @janwillies - Is this something you can help me out with?
This seems to be a permission error that is returned by Argocd if a List
call returns no results. That is strange because it is supposed to return an empty list if no application matches the query.
Which Argocd version are you using? And can you try it with provider-argocd v0.6.0
?
This seems to be a permission error that is returned by Argocd if a
List
call returns no results. That is strange because it is supposed to return an empty list if no application matches the query.Which Argocd version are you using? And can you try it with provider-argocd
v0.6.0
?
I tried it and it returns same
2024-02-01T09:26:56Z DEBUG provider-argocd Cannot observe external resource {"controller": "managed/application", "request": "/example-application-kubeconfig", "uid": "2a4781f0-eb47-4841-80c1-7c35f6141289", "version": "88623982", "external-name": "example-application-kubeconfig", "error": "cannot list Argocd application: rpc error: code = NotFound desc = application 'example-application-kubeconfig' not found", "errorVerbose": "rpc error: code = NotFound desc = application 'example-application-kubeconfig' not found\ncannot list Argocd application\ngithub.com/crossplane-contrib/provider-argocd/pkg/controller/applications.(*external).Observe\n\tgithub.com/crossplane-contrib/provider-argocd/pkg/controller/applications/controller.go:113\ngithub.com/crossplane/crossplane-runtime/pkg/reconciler/managed.(*Reconciler).Reconcile\n\tgithub.com/crossplane/crossplane-runtime@v0.19.2/pkg/reconciler/managed/reconciler.go:780\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\tsigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:122\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\tsigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:323\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\tsigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:274\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\tsigs.k8s.io/controller-runtime@v0.14.6/pkg/internal/controller/controller.go:235\nruntime.goexit\n\truntime/asm_amd64.s:1594"}
2024-02-01T09:26:56Z DEBUG events cannot list Argocd application: rpc error: code = NotFound desc = application 'example-application-kubeconfig' not found {"type": "Warning", "object": {"kind":"Application","name":"example-application-kubeconfig","uid":"2a4781f0-eb47-4841-80c1-7c35f6141289","apiVersion":"applications.argocd.crossplane.io/v1alpha1","resourceVersion":"88623982"}, "reason": "CannotObserveExternalResource"}
@aslamkhan138 which argocd version do you ahve deployed?
@aslamkhan138 which argocd version do you ahve deployed?
I have tried on both v0.5.0 and v0.6.0
@aslamkhan138 and which version of argo-cd itself are you running?
argo-cd
@maximilianbraun - argocd version : v2.6.7+5bcd846
Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as stale
because it has had no activity in the last 90 days. It will be closed in 7 days if no further activity occurs. Leaving a comment starting with /fresh
will mark this issue as not stale.
/fresh
Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as stale
because it has had no activity in the last 90 days. It will be closed in 7 days if no further activity occurs. Leaving a comment starting with /fresh
will mark this issue as not stale.
/fresh