How to clear GitOps ArgoCD application cache?
Issue
-
Updating
.gitmodulesfiles to new git repo location is not properly recognized byArgoCD. The following error message can be seen:rpc error: code = Internal desc = Failed to checkout FETCH_HEAD: `git submodule update --init --recursive` failed exit status 1: remote: TF401019: The Git repository with name or identifier <name> does not exist or you do not have permissions for the operation you are attempting. fatal: repository <URL> not found remote: TF401019: The Git repository with name or identifier <name> does not exist or you do not have permissions for the operation you are attempting. fatal: repository <URL> not found Fetched in submodule path <path>, but it did not contain <id>. Direct fetching of that commit failed. -
ArgoCD caches the checkout of the application repository and it doesn't properly recognize the new location of the submodule.
Environment
- Red Hat OpenShift Container Platform
- 4.10+
- Red Hat OpenShift GitOps
- 1.x+
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.