question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"diff" shows more changes than CLI

See original GitHub issue

When 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: image

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
brendandburnscommented, Mar 30, 2020

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.

0reactions
bkmeneguellocommented, Jun 12, 2020

I suppose it should be simple to modify extension#diffKubernetesCore to make use of kubectl.invokeCommandThen(`diff -f ${fileUri}`, ...)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found