Add support for route object in Openshift
Summary
In openshift when you deploy a route without a host, the Openshift will generate a host for the route
But currently when you deploy a route object in argocd without .spec.host argocd will mark it as OutOfSync because in the live manifest the .spec.host is auto generated by the cluster. Right now the only way to solve this issue is to implement the ignoreDifferences:
ignoreDiffreneces:
- group: route.openshift.io
kind: Route
jsonPointers:
- /spec/host
Proposal
I think that part of the route health check should include a check that the .spec.host in the live manifest is not empty
You can update the resource health check here which will show the status of the resource.
I'm not able to reproduce the issue with this CRD: https://github.com/openshift/router/blob/72114ea78be0a032d5cdddcad694e0a352a00e93/deploy/route_crd.yaml
https://github.com/user-attachments/assets/7e20fe44-58cf-496c-81b1-ad724620be75
I also tried reproducing the same in an open-shift cluster, but I don't see the issue.
Desired Manifest:
LIVE MANIFEST
What are the versions of ArgoCD and manifests used? @tomerle03, try upgrading ArgoCD and manifest to 2.12 or 2.13 and see if the issue still persists.