helm-diff icon indicating copy to clipboard operation
helm-diff copied to clipboard

Detect immutable field changes

Open okozachenko1203 opened this issue 1 year ago • 1 comments

Is it possible to add the information in the change list if the change is for immutable fields of the resource type.

I was able to get the change path in dyff output format.

spec.selector.matchLabels.component  (Deployment/default/memcached-memcached)
  ± value change
    - server
    + server-new

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

https://github.com/databus23/helm-diff/blob/9d4d8e71dd7b1e911119a05862462a4ecf679e32/diff/constant.go#L1-L13

It would be good if we can render the change path (for instance, spec.selector.matchLabels.component) in the tpl.

okozachenko1203 avatar Jan 23 '25 14:01 okozachenko1203

@okozachenko1203 PR is welcome.

yxxhero avatar Jan 24 '25 13:01 yxxhero