• Kubernetes Submit Queue's avatar
    Merge pull request #56779 from Lion-Wei/kubectl-2 · b3cf1bd1
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 57651, 56411, 56779, 57523, 57624). 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>.
    
    Error out if kubectl create with extra argument
    
    **What this PR does / why we need it**:
    When using `kubectl create` command with extra args, kubectl will accept the first one and ignore the others. 
    This pr give a warnning in this case
    
    **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
    Fixes kubernetes/kubectl#148
    
    **Special notes for your reviewer**:
    
    **Release note**:
    ```release-note
    NONE
    ```
    b3cf1bd1
create.go 11.1 KB