argo-cd: ComparsionError when using networking.k8s.io/v1 Ingress
Describe the bug
I tried to manage project that defined Ingress from networking.k8s.io/v1
api group (k8s 1.19).
Initial sync is ok, but I cannot sync any more times because of following error:
ComparisonError
failed to convert *unstructured.Unstructured to *v1beta1.Ingress: no kind "Ingress" is registered for version "networking.k8s.io/v1" in scheme "pkg/runtime/scheme.go:101"
To Reproduce Just create any networking.k8s.io/v1 Ingress within 1.19 cluster
Expected behavior ArgoCD works with v1 Ingress
Version 1.7.5
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (2 by maintainers)
I figured out my issue. Somewhere in upgrading ArgoCD switched from using a Deployment to using a StateFul set and upgrading via ArgoCD didn’t delete the old Deployment, so it ended up abandoned. So we had a 1.7.8 application controller and a 2.2.3 application controller running at the same time, fighting with each other. If Google bring you here try running the following.
kubectl get pods
Mine looked like this. There should only be one “application-controller”. 5c5488c47d-vgrkj is the old one that shouldn’t be there
Thanks for the tip @avdhoot I see that v1.8 is on its way and may include the fix. Though having confirmation here would be great 😉
@kingdonb @avdhoot @jshin47 I’ve just tested version 1.8.1 and this is now fixed (version 1.8.0 should be fine too)
thank you for updating the issue @Prototik !
That’s fixed by 3ae1d13dfd541c34a2b970b7a6d8f32f2369d31a