"diff" shows more changes than CLI
See original GitHub issueWhen I change the number of replicas, the kubectl diff
shows that line and the generation
line as changed. When I run the extension’s Diff command I get many more changes which seems unexpected and makes it hard to read:
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
"diff" shows more changes than CLI · Issue #682 - GitHub
When I run the extension's Diff command I get many more changes which seems unexpected and makes it hard to read:
Read more >Git diff Command – How to Compare Changes in Your Code
git diff – the Universal diff Command ... git diff lists out the changes between your current working directory and your staging area....
Read more >Inspecting Changes with Diffs | Learn Version Control with Git
Without further options, "git diff" will show us all current local changes in our working copy that are unstaged. If you want to...
Read more >git-diff Documentation - Git
Show changes between the working tree and the index or a tree, changes between the index and a tree, changes between two trees,...
Read more >git diff - output showing changes "incorrectly" - Stack Overflow
The case you show up contains all lines with the same content, the git algorithm won't be able to distinguish one line to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Docs are here: https://kubernetes.io/blog/2019/01/14/apiserver-dry-run-and-kubectl-diff/
We should do
kubectl apply --dry-run
instead of just using the file-system.I suppose it should be simple to modify extension#diffKubernetesCore to make use of
kubectl.invokeCommandThen(`diff -f ${fileUri}`, ...)