When an Application is installed on a cluster within a user's namespace and where its AppProject is also installed within a user's namespace, then we got as error within the Application resource status:
Application referencing project xyz which does not exist
even if the AppProject is well created under the user's namespace.
Issue: argoproj/argo-cd#21150 Discussion: argoproj/argo-cd#8402 (reply in thread)
- Create a kind cluster and deploy argocd
idpbuilder create --color --name dabou --port 8443 -c argocd:argocd-cm.yaml
- Rollout argocd as the configMap content changed
kubectl rollout restart -n argocd deployment argocd-server
kubectl rollout restart -n argocd statefulset argocd-application-controller
- Deploy the argocd resources
kubectl apply -f app-to-app-error.yaml