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

How to view only the diff between values not the manifest ?

Open fmiqbal opened this issue 2 years ago • 3 comments

I want to view the diff on currently deployed user-values to the to-be-applied values, not the manifest, is it possible ?

fmiqbal avatar Aug 20 '23 21:08 fmiqbal

this feature is really great

TimeBye avatar Dec 12 '23 10:12 TimeBye

I was looking for this as well. I sometimes have huge configMaps that basically bloat the output of helm diff upgrade ... when only a few lines in between the rest of the content changes.

It would be great if there was an option to have a kind of minimal output, showing only the path of the file and the lines that have changes (currently highlighted in red / green in the console output).

juv avatar Apr 19 '24 13:04 juv

@fmiqbal @TimeBye @juv

Hello, for your problem, you can try to use --context number to solve it. You can set the number of lines before and after the difference is displayed. Suppose I want to display the upper and lower 5 lines of the difference. Just add --context 5.

--context int output NUM lines of context around changes (default -1)

截圖 2024-04-24 上午11 24 01

880831ian avatar Apr 24 '24 06:04 880831ian