I can see the default helm diff template in the code base.
| package diff |
| |
| constdefaultTemplateReport=`[ |
| {{- $global := . -}} |
| {{- range $idx, $entry := . -}} |
| { |
| "api": "{{ $entry.API }}", |
| "kind": "{{ $entry.Kind }}", |
| "namespace": "{{ $entry.Namespace }}", |
| "name": "{{ $entry.Name }}", |
| "change": "{{ $entry.Change }}" |
| }{{ if not (last $idx $global) }},{{ end }} |
| {{- end }}]` |
Is it possible to render the change path (for instance, spec.selector.matchLabels.component) in the tpl?
The final goal is to detect the immutable field changes using this helm diff plugin.
I can see the default helm diff template in the code base.
helm-diff/diff/constant.go
Lines 1 to 13 in 9d4d8e7
Is it possible to render the change path (for instance,
spec.selector.matchLabels.component) in the tpl?The final goal is to detect the immutable field changes using this helm diff plugin.