Support ignoreDifferences within string #20873
Labels
component:diffing
enhancement
New feature or request
more-information-needed
Further information is requested
Summary
ConfigMap
.ignoreDifferences
are supported within Kubernetes manifests, users may need to ignore differences inside a ConfigMap.Motivation
For example- there are certain fields within our Kiali
ConfigMap
that show diffs on every update. We would like to suppress those changes in the ArgoCD UI.Proposal
type ResourceIgnoreDifferences struct { ... JSONPointers []string `json:"jsonPointers,omitempty" protobuf:"bytes,5,opt,name=jsonPointers"` JQPathExpressions []string `json:"jqPathExpressions,omitempty" protobuf:"bytes,6,opt,name=jqPathExpressions"` + YAMLStringIgnoreJQPaths []string `json:"yamlStringIgnoreJQPaths,omitempty" protobuf:"bytes,6,opt,name=yamlStringIgnoreJQPaths"`
The behavior would be:
YAMLStringIgnoreJQPaths
is non-empty, all values referred to byJSONPointers
andJQPathExpressions
will be parsed as YAML.YAMLStringIgnoreJQPaths
will be ignored.The text was updated successfully, but these errors were encountered: