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