Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.24 KB

compare-options.md

File metadata and controls

34 lines (25 loc) · 1.24 KB

Compare Options

Ignoring Resources That Are Extraneous

You may wish to exclude resources from the app's overall sync status under certain circumstances. E.g. if they are generated by a tool. This can be done by adding this annotation:

metadata:
  annotations:
    argocd.argoproj.io/compare-options: IgnoreExtraneous

compare option needs pruning

!!! note This only affects the sync status. If the resource's health is degraded, then the app will also be degraded.

Kustomize has a feature that allows you to generate config maps (read more ⧉). You can set generatorOptions to add this annotation so that your app remains in sync:

configMapGenerator:
  - name: my-map
    literals:
      - foo=bar
generatorOptions:
  annotations:
    argocd.argoproj.io/compare-options: IgnoreExtraneous
kind: Kustomization

!!! note generatorOptions adds annotations to both config maps and secrets (read more ⧉).

You may wish to combine this with the Prune=false sync option.