kubernetes / kubernetes/kubectl
Kubectl edit: `--show-managed-fields` does nothing
- Dominant language
- Go
- Stars
- 3.3k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Description
### What happened?
I edited an object like so `kubectl edit svc my-server --show-managed-fields` and epected to see managed fields but didn't. When using `kubectl get -oyaml --show-managed-fields` they are shown
### What did you expect to happen?
See managed fields
### How can we reproduce it (as minimally and precisely as possible)?
`kubectl edit some-type some-name --show-managed-fields`
### Anything else we need to know?
_No response_
### Kubernetes version
```console
$ kubectl version
$ k version --client --short
Flag --short has been deprecated, and will be removed in the future. The --short output will become the default.
Client Version: v1.25.3
Kustomize Version: v4.5.7
# paste output here
```
### Cloud provider
AWS
### OS version
```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here
# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here
```
### Install tools
### Container runtime (CRI) and version (if applicable)
### Related plugins (CNI, CSI, ...) and versions (if applicable)
Contributor guide
Assessment
This issue has not been assessed yet.