Open danielftapiar opened 3 months ago
@danielftapiar , I tried to reproduce it by inserting CRD into the official sample. I definitely confirmed that the error message was output at the debug level, but the operation itself was fine. When I changed the value of CRD yaml, the diff value was output normally. Are you pointing out that there is a problem with the operation itself, or with the error message itself?
$ argocd app diff guestbook-3 --loglevel debug
INFO[0000] Could not create new object of type apiextensions.k8s.io/v1, Kind=CustomResourceDefinition: no kind "CustomResourceDefinition" is registered for version "apiextensions.k8s.io/v1" in scheme "pkg/runtime/scheme.go:100"
INFO[0000] Could not create new object of type apiextensions.k8s.io/v1, Kind=CustomResourceDefinition: no kind "CustomResourceDefinition" is registered for version "apiextensions.k8s.io/v1" in scheme "pkg/runtime/scheme.go:100"
===== apiextensions.k8s.io/CustomResourceDefinition /myresources.example.com ======
81c81
< - mrx
---
> - mr
I did a few more updates and can corroborate what you say is true, error message shows up, but resources get deployed
Describe the bug
When trying to run an
app diff
on an the CLI it fails to generate any diffs that are currently on the release.It silently fails, but increasing the log level to debug you can see that it's having issues creating the CRDs that are part of the helm release
This only seems to be happening with custom resource definitions (CRDs) I have other releases that render the correct manifests.
To Reproduce
Expected behavior
app diff should render the diffs found on custom resources.
Checklist:
argocd version
.Screenshots
Version
Logs