IssueRaiser

Provide richer diff of values changes

### Description When I have an existing `helm_release` with a set of `values[]`, and the values change, often the values are only changing by a few lines. I would like to see a more narrow diff of the selected part of the values that have changed from my last apply, rather than the current view of "old values file replaced by new values file." I'm not sure if this is feasible. But, if I have a long values file, the diff becomes meaningless if it just prints the 100 lines of old file as being replaced by 101 lines of new file, without any indicator of which line has changed. Take this example diff given a small values file change. Can you immediately tell which line has changed? ``` Terraform will perform the following actions: # helm_release.datadog[0] will be updated in-place ! resource "helm_release" "datadog" { id = "datadog" name = "datadog" ! values = [ - <<-EOT dogstatsd: originDetection: true useHostPort: true useHostPID: true useSocketVolume: true nonLocalTraffic: true # unix domain socket # keep this value in sync with helm-charts DD_DOGSTATSD_SOCKET (default is in flux) socketPath: /var/run/datadog/statsd.sock EOT, + <<-EOT dogstatsd:

Posted by jcogilvie on Apr 18, 2023, 4:25 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

github (Other)

Provide richer diff of values changes

jcogilvieApr 18, 2023, 4:25 PM

### Description When I have an existing `helm_release` with a set of `values[]`, and the values change, often the values are only changing by a few lines. I would like to see a more narrow diff of the selected part of the values that have changed from my last apply, rather than the current view of "old values file replaced by new values file." I'm not sure if this is feasible. But, if I have a long values file, the diff becomes meaningless if it just prints the 100 lines of old file as being replaced by 101 lines of new file, without any indicator of which line has changed. Take this example diff given a small values file change. Can you immediately tell which line has changed? ``` Terraform will perform the following actions: # helm_release.datadog[0] will be updated in-place ! resource "helm_release" "datadog" { id = "datadog" name = "datadog" ! values = [ - <<-EOT dogstatsd: originDetection: true useHostPort: true useHostPID: true useSocketVolume: true nonLocalTraffic: true # unix domain socket # keep this value in sync with helm-charts DD_DOGSTATSD_SOCKET (default is in flux) socketPath: /var/run/datadog/statsd.sock EOT, + <<-EOT dogstatsd:

Comments (0)

No comments yet. Start the discussion.

Comment on this issue