mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-14 12:00:15 +00:00
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. add more error logs in kubectl run **What this PR does / why we need it**: closes issue #29307 now will get log with different cases: ```bash kubectl run hello-node --image=aronchick/hello-node:2.0 --port=8080 --expose=true service "hello-node" created deployment "hello-node" created kubectl run hello-node --image=aronchick/hello-node:2.0 --port=8080 --expose=true Error from server (AlreadyExists): deployments.extensions "hello-node" already exists Error from server (AlreadyExists): services "hello-node" already exists kubectl delete deploy hello-node deployment "hello-node" deleted kubectl run hello-node --image=aronchick/hello-node:2.0 --port=8080 --expose=true deployment "hello-node" created Error from server (AlreadyExists): services "hello-node" already exists kubectl delete svc hello-node service "hello-node" deleted kubectl run hello-node --image=aronchick/hello-node:2.0 --port=8080 --expose=true service "hello-node" created Error from server (AlreadyExists): deployments.extensions "hello-node" already exists ``` **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```