kubectl diff should have an option to use kubectl replace
instead of kubectl apply
to generate the diff
#1686
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added:
A
--replace
flag or similar to makekubectl diff
usekubectl replace
overkubectl apply
Why is this needed:
currently there is no way to see fields that have been removed from a desired manifest in
kubectl diff
for example, with live manifest:
and desired.yaml:
kubectl diff -f desired.yaml
will result in no diffwith
--replace
it would correctly show:The text was updated successfully, but these errors were encountered: