Thanks to visit codestin.com
Credit goes to github.com

Skip to content

kubectl delete doesn't return error or print resource not found #8218

@yujuhong

Description

@yujuhong

If you run kubectl delete resource <non_existent_resource_name>, kubectl exits with 0 and prints nothing.

E.g.

$ ./cluster/kubectl.sh delete pod abc
$ echo $?
0

I expected to see a "resource not found" message and/or an error code when this occurred. It's very misleading when you type the wrong resource name and think you delete it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/kubectlpriority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions