-
Notifications
You must be signed in to change notification settings - Fork 934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Error Message from Using kubectl apply with generateName #835
Comments
/assign |
/sig cli @zhouya0 Please feel free to modify the priority as you see fit |
I tried to send a PR, I don't know if this could solve your porblem. kubernetes/kubernetes#88998 I didn't add some message like |
@zhouya0 Thanks! Added feedback to your pr. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Version:
Currently, if
kubectl apply -f
is used withgenerateName
specified but noname
specified in the metadata of an object, the resulting error will be similar to the following:The issue of the error message has come up in a number of places:
The solution to this error, very often, is to run
kubectl create -f
instead of usingkubectl apply
, but the error message makes it challenging for users to understand what the problem is.I am proposing adjusting the error message in the case of using
kubectl apply
withgenerateName
specified but noname
specified to be something along the lines oftry running kubectl create -f instead
.I think this would provide greater clarity to users for how to use
generateName
withkubectl
and help users address the problem on their own much better.The text was updated successfully, but these errors were encountered: