github.com/argoproj/argo-cd/v2@v2.10.9/docs/user-guide/compare-options.md (about) 1 # Compare Options 2 3 ## Ignoring Resources That Are Extraneous 4 5 >v1.1 6 7 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 on the resource you wish to exclude: 8 9 ```yaml 10 metadata: 11 annotations: 12 argocd.argoproj.io/compare-options: IgnoreExtraneous 13 ``` 14 15  16 17 !!! note 18 This only affects the sync status. If the resource's health is degraded, then the app will also be degraded. 19 20 Kustomize has a feature that allows you to generate config maps ([read more ⧉](https://github.com/kubernetes-sigs/kustomize/blob/master/examples/configGeneration.md)). You can set `generatorOptions` to add this annotation so that your app remains in sync: 21 22 ```yaml 23 configMapGenerator: 24 - name: my-map 25 literals: 26 - foo=bar 27 generatorOptions: 28 annotations: 29 argocd.argoproj.io/compare-options: IgnoreExtraneous 30 kind: Kustomization 31 ``` 32 33 !!! note 34 `generatorOptions` adds annotations to both config maps and secrets ([read more ⧉](https://github.com/kubernetes-sigs/kustomize/blob/master/examples/generatorOptions.md)). 35 36 You may wish to combine this with the [`Prune=false` sync option](sync-options.md).