How to clear GitOps ArgoCD application cache?

Solution Verified - Updated -

Issue

  • Updating .gitmodules files to new git repo location is not properly recognized by ArgoCD. 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content