kubectl icon indicating copy to clipboard operation
kubectl copied to clipboard

kubectl diff does not work with applysets

Open uhthomas opened this issue 1 year ago • 3 comments

What happened:

❯ KUBECTL_APPLYSET=true kubectl diff --applyset=applyset/automata -f bazel-out/k8-fastbuild/bin/k8s/unwind/list.json --prune
error: unknown flag: --applyset
See 'kubectl diff -h' for help and example

What you expected to happen:

kubectl should show a diff of what changes would be made.

How to reproduce it (as minimally and precisely as possible):

See above.

Anything else we need to know?:

ApplySets were introduced recently, I would have expected them to work with diff also.

https://kubernetes.io/blog/2023/05/09/introducing-kubectl-applyset-pruning/

Environment:

  • Kubernetes client and server versions (use kubectl version): v.127.2
  • Cloud provider or hardware configuration: N/A
  • OS (e.g: cat /etc/os-release): N/A

uhthomas avatar Jun 01 '23 19:06 uhthomas

/triage accepted Alpha versions of features are not guaranteed to be fully feature, though if someone would be willing to add this feature we would accept a PR for it.

mpuckett159 avatar Jun 22 '23 04:06 mpuckett159

@mpuckett159 @uhthomas I can look into this. Looking to get familiar with the code base, and could start with this. /assign

varshaprasad96 avatar Jul 26 '23 16:07 varshaprasad96

Hi there @mpuckett159, is this issue still up for grabs? If so, I'd happily look into it.

kimchidonut0 avatar Dec 18 '23 03:12 kimchidonut0