Uploaded image for project: 'OpenShift Request For Enhancement'
  1. OpenShift Request For Enhancement
  2. RFE-8187

When a CustomResourceDefinition (CRD) manifest is removed, ArgoCD by default stops managing it but does not delete it from the cluster.

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • GitOps
    • None
    • Product / Portfolio Work
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When a CustomResourceDefinition (CRD) manifest is removed, ArgoCD by default stops managing it but does not delete it from the cluster.

      Workaround:
      Manual removal of the orphan CRs

       

      Additional Details:

      ArgoCD’s default behavior on CRD removal:

      CRD manifest removed.
      ArgoCD sync: ArgoCD notices the CRD is no longer in Git.
      ArgoCD pruning: skips deletion for CRDs (to avoid data loss risk).
      Result: CRD remains orphaned
      We need a strategy to delete CRDs only when no CustomResources (CRs) exist, preventing broken dependencies.

       

       

              halawren@redhat.com Harriet Lawrence
              rhn-support-pkhaire Palash Khaire
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                None
                None