-
Notifications
You must be signed in to change notification settings - Fork 39
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
Panic on Cluster deletion #27
Comments
Did that change recently? It used to be EDIT: I remember we had some challenges with non-existing resources from the argocd api before: argoproj/argo-cd#5951 |
It would be surprising if this was changed on purpose, might be a regression along the way. The issue cannot be fully resolve in the provider as long as Argo doesn't return the appropriate code, I opened an issue argoproj/argo-cd#10830. We could check before |
Reading the discussion on the upstream issue probably the best workaround would be to check additionally for the new error ( |
Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as |
What happened?
The cluster was successfully created, but when the resource is deleted the controller had a panic :
The following code block get the cluster, but when a cluster has been deleted the Argocd API return a permission denied error, which is not checked.
provider-argocd/pkg/controller/cluster/controller.go
Lines 109 to 114 in 804f99b
Using the cli I confirmed the behaviour
argocd cluster get deleted-cluster WARN[0000] Failed to invoke grpc call. Use flag --grpc-web in grpc calls. To avoid this warning message, use flag --grpc-web. FATA[0000] rpc error: code = PermissionDenied desc = permission denied
How can we reproduce it?
Create a Cluster then delete the resource
What environment did it happen in?
Argocd 2.4.11
Crossplane version: 1.9.0
Crossplane Provider argocd version: 0.1.0
The text was updated successfully, but these errors were encountered: