From 8da0d9e727acd0a557385299182b5f5539088ee2 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Tue, 14 Nov 2023 10:59:42 -0500 Subject: [PATCH] fix: Updated docs about using a slash in ignoreDifferences (#15144) (#15169) Signed-off-by: Christian Hernandez Co-authored-by: Christian Hernandez --- docs/user-guide/diffing.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/user-guide/diffing.md b/docs/user-guide/diffing.md index 3daa006370f73..5a056b9c3769b 100644 --- a/docs/user-guide/diffing.md +++ b/docs/user-guide/diffing.md @@ -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