The tool has a hardcoded defaultIgnorePatterns list in pkg/matching/output.go that unconditionally suppresses diff lines matching patterns like caBundle: , ca.crt: , tls.crt:
Some background: we require (don't ask why) passing in an inline caBundle. As part of a refactor, the ArgoCD diff produced no output for a caBundle change (which we interpreted as a successful refactor - if there's no change to the rendered manifests, there's no change to the live cluster) when in reality there was a hidden change.
Requested change:
Add a flag (e.g. --no-default-diff-ignore or --default-diff-ignore=false) that disables the hardcoded defaultIgnorePatterns, letting users rely solely on their own --diff-ignore regex if desired.
The tool has a hardcoded
defaultIgnorePatternslist inpkg/matching/output.gothat unconditionally suppresses diff lines matching patterns likecaBundle:,ca.crt:,tls.crt:Some background: we require (don't ask why) passing in an inline caBundle. As part of a refactor, the ArgoCD diff produced no output for a caBundle change (which we interpreted as a successful refactor - if there's no change to the rendered manifests, there's no change to the live cluster) when in reality there was a hidden change.
Requested change:
Add a flag (e.g.
--no-default-diff-ignoreor--default-diff-ignore=false) that disables the hardcodeddefaultIgnorePatterns, letting users rely solely on their own--diff-ignoreregex if desired.