• Kubernetes Submit Queue's avatar
    Merge pull request #51339 from zjj2wry/kubectl-run · dd71bf03
    Kubernetes Submit Queue authored
    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
    ```
    dd71bf03
Name
Last commit
Last update
..
apply Loading commit data...
apps Loading commit data...
categories Loading commit data...
cmd Loading commit data...
explain Loading commit data...
metricsutil Loading commit data...
plugins Loading commit data...
proxy Loading commit data...
resource Loading commit data...
scheme Loading commit data...
util Loading commit data...
validation Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
apply.go Loading commit data...
autoscale.go Loading commit data...
autoscale_test.go Loading commit data...
bash_comp_utils.go Loading commit data...
clusterrolebinding.go Loading commit data...
clusterrolebinding_test.go Loading commit data...
configmap.go Loading commit data...
configmap_test.go Loading commit data...
delete.go Loading commit data...
delete_test.go Loading commit data...
deployment.go Loading commit data...
deployment_test.go Loading commit data...
doc.go Loading commit data...
env_file.go Loading commit data...
env_file_test.go Loading commit data...
generate.go Loading commit data...
generate_test.go Loading commit data...
history.go Loading commit data...
history_test.go Loading commit data...
interfaces.go Loading commit data...
kubectl.go Loading commit data...
namespace.go Loading commit data...
namespace_test.go Loading commit data...
pdb.go Loading commit data...
pdb_test.go Loading commit data...
priorityclass.go Loading commit data...
priorityclass_test.go Loading commit data...
quota.go Loading commit data...
quota_test.go Loading commit data...
resource_filter.go Loading commit data...
resource_filter_test.go Loading commit data...
rolebinding.go Loading commit data...
rolebinding_test.go Loading commit data...
rollback.go Loading commit data...
rollback_test.go Loading commit data...
rolling_updater.go Loading commit data...
rolling_updater_test.go Loading commit data...
rollout_status.go Loading commit data...
rollout_status_test.go Loading commit data...
run.go Loading commit data...
run_test.go Loading commit data...
scale.go Loading commit data...
scale_test.go Loading commit data...
secret.go Loading commit data...
secret_for_docker_registry.go Loading commit data...
secret_for_docker_registry_test.go Loading commit data...
secret_for_tls.go Loading commit data...
secret_for_tls_test.go Loading commit data...
secret_test.go Loading commit data...
service.go Loading commit data...
service_basic.go Loading commit data...
service_basic_test.go Loading commit data...
service_test.go Loading commit data...
serviceaccount.go Loading commit data...
serviceaccount_test.go Loading commit data...
sorting_printer.go Loading commit data...
sorting_printer_test.go Loading commit data...