Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Add an explanation of using ignoring differences for app of apps pattern #18945

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion docs/operator-manual/cluster-bootstrapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,29 @@ metadata:
- resources-finalizer.argocd.argoproj.io
spec:
...
```
```

### Ignoring differences in child applications

To allow changes in child apps without triggering an out-of-sync status, or modification for debugging etc, the app of apps pattern works with [diff customization](../user-guide/diffing/). The example below shows how to ignore changes to syncPolicy and other common values.

```yaml
spec:
...
syncPolicy:
...
syncOptions:
- RespectIgnoreDifferences=true
...
ignoreDifferences:
- group: "*"
kind: "Application"
namespace: "*"
jsonPointers:
# Allow manually disabling auto sync for apps, useful for debugging.
- /spec/syncPolicy/automated
# These are automatically updated on a regular basis. Not ignoring last applied configuration since it's used for computing diffs after normalization.
- /metadata/annotations/argocd.argoproj.io~1refresh
- /operation
...
```