gitops-operator icon indicating copy to clipboard operation
gitops-operator copied to clipboard

Ignore differences when using the catalog source image template annotation

Open Jamstah opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. When ArgoCD is used to sync a catalog source that uses the olm.catalogImageTemplate to set the image name, the image is replaced using the template. ArgoCD then thinks the resource is out of sync, because the image name doesn't match the desired state.

See this repo as an example to sync: https://github.com/Jamstah/ibm-operator-catalog

Describe the solution you'd like Automatically ignore that difference by ignoring fields set by the catalog manager, the same way we set tekton exclusions here.

In the default ArgoCD object, that would be:

spec:
  resourceIgnoreDifferences:
    resourceIdentifiers:
      - customization:
          managedFieldsManagers:
            - catalog
        group: operators.coreos.com
        kind: CatalogSource

Describe alternatives you've considered Without this, users need to ignore the difference themselves.

Jamstah avatar Apr 16 '24 14:04 Jamstah