Skip to content

Is it possible to get the change path via HELM_DIFF_TPL? #729

Open
@okozachenko1203

Description

@okozachenko1203

I can see the default helm diff template in the code base.

package diff
const defaultTemplateReport = `[
{{- $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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions