kubernetes / kubernetes/kubectl

kubectl diff does not work with applysets

Open
#1,435 21 comments 6 reactions 1 assignee Claimed by @Okabe-Junya View on GitHub
area/kubectl kind/bug needs-triage sig/cli
Dominant language
Go
Stars
3.3k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

**What happened**:

```sh
❯ 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.