Skip to content

Commit

Permalink
fix: Updated docs about using a slash in ignoreDifferences (#15144) (#…
Browse files Browse the repository at this point in the history
…15169)

Signed-off-by: Christian Hernandez <[email protected]>
Co-authored-by: Christian Hernandez <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and christianh814 authored Nov 14, 2023
1 parent c9ae6a1 commit 8da0d9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/user-guide/diffing.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ spec:

The above configuration will ignore differences from all fields owned by `kube-controller-manager` for all resources belonging to this application.

If you have a slash `/` in your pointer path, you can use the `~1` character. For example:

```yaml
spec:
ignoreDifferences:
- kind: Node
jsonPointers: /metadata/labels/node-role.kubernetes.io~1worker
```

## System-Level Configuration

The comparison of resources with well-known issues can be customized at a system level. Ignored differences can be configured for a specified group and kind
Expand Down

0 comments on commit 8da0d9e

Please sign in to comment.