4 ms·
The diff I did is aware of the structure of the object. It's not just sorted lines.
by jrockway 6y ago
The diff I did is aware of the structure of the object. It's not just sorted lines.
- kmarc 6y agoApart from the interesting conversation here, just to make sure... You are all aware of kubectl diff[1], right? I understand that sometimes you just want to diff two k8s objects, kubectl diff is not a tool for that. [1]: https://www.mankier.com/1/kubectl-diff https://www.mankier.com/1/kubectl-diff
- jrockway 6y agoMaybe a bit of a red herring, but I just used Kubernetes as a cheap source of mildly interesting JSON to test a diffing tool with. You'll see that the manpage for Graphtage just uses things like '{"foo":["bar"]}' in their examples... and those run fast. But the second you get some real-world piece of data, it takes 5 minutes to run. That's why I tested on some real-world data first.
- rmetzler 6y agoYes, I understood this. I was just trying to say that it's not easy for me to recognise the context of a diff in a deep nested yaml or json.