Skip to content

Help does not match or needs updated #1812

@bkmetzler

Description

@bkmetzler

What happened:
kubectl create --help does not match kubectl create TYPE --help

# kubectl create --help
This has --edit

# kubectl create TYPE --help
Does not have --edit

What you expected to happen:
Wouldn't the base --edit boil up to the 'kubectl create TYPE'? If not, then --edit should be under the kubectl create TYPE --help.

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

kubectl create --help
<skip unneeded output>
    --edit=false:
	Edit the API resource before creating
<skip unneeded output>
kubectl create deploy --help 
<--edit not listed>

Based on the current documentation I would expect the --edit flag to either be executable as:
kubectl create --edit TYPE <other flags>

Based on my understanding of how GoLang and kubectl is programmed, this should work as well:
kubectl create TYPE --edit

Anything else we need to know?:
Nothing I can think of.

Environment:

  • Kubernetes client and server versions (use kubectl version ran from Desktop(see below)):
CMD# kubectl version
Client Version: v1.34.3
Kustomize Version: v5.7.1
Server Version: v1.34.3
  • Cloud provider or hardware configuration:
    Ubuntu 24.04.3 image in VirtualBox, locally
    HAProxy to 3 Control Panel nodes (all nodes match versions above)
    Worker nodes are also the same OS version.

OS (e.g: cat /etc/os-release):

  • Control Plane and Worker Nodes:
cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

  • Desktop (where kubectl is being ran from):
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo

UPDATE:
I have verified this on the following as well:

$ kubectl version
Client Version: v1.35.0
Kustomize Version: v5.7.1
Server Version: v1.34.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions