I found an issue with another operator (capi), which has conversion tags in its CRDs pointing to a webhook service it runs. When this service is unavailable, the k8s API server will respond with internal error occurred: error resolving resource when a CR list is requested.
Now this is all understandable. It's annoying, but still, the API is right in a sense.
The problem however, is that when Argo CD tries to refresh an Application, it will ask for all known resources (including those of this broken CRD), and stop because of this error. Even if the Application here doesn't use this CRD.
To Reproduce
Install CAPI operator without having cert-manager installed. Then add any Application to argo and let it refresh / sync.
Expected behavior
I would expect Argo CD to warn about this, but not break the Application refresh/sync. It should lead to Applications not finishing the sync, if the CRD in question is used, but otherwise, it should continue to work.
Checklist:
argocd version
.Describe the bug
I found an issue with another operator (capi), which has
conversion
tags in its CRDs pointing to a webhook service it runs. When this service is unavailable, the k8s API server will respond withinternal error occurred: error resolving resource
when a CR list is requested.Now this is all understandable. It's annoying, but still, the API is right in a sense. The problem however, is that when Argo CD tries to refresh an Application, it will ask for all known resources (including those of this broken CRD), and stop because of this error. Even if the Application here doesn't use this CRD.
To Reproduce
Install CAPI operator without having cert-manager installed. Then add any Application to argo and let it refresh / sync.
Expected behavior
I would expect Argo CD to warn about this, but not break the Application refresh/sync. It should lead to Applications not finishing the sync, if the CRD in question is used, but otherwise, it should continue to work.
Screenshots
Version
Logs