• Kubernetes Submit Queue's avatar
    Merge pull request #54142 from neolit123/cmdutil-01 · 7f49a2cc
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 53809, 54244, 54142). 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>.
    
    kubeadm/cmdutil.go: improve ValidateExactArgNumber()
    
    **What this PR does / why we need it**:
    This patch makes small changes in
    ValidateExactArgNumber():
    
    - Use a variable for the length of supported arguments
    - Return an error early if the number of valid arguments
    exceeds the number of supported arguments
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #
    none
    
    **Special notes for your reviewer**:
    none
    
    **Release note**:
    
    ```release-note
    NONE
    ```
    
    Lubomir (VMware)
    7f49a2cc
Name
Last commit
Last update
..
clicheck Loading commit data...
cloud-controller-manager Loading commit data...
gendocs Loading commit data...
genkubedocs Loading commit data...
genman Loading commit data...
genswaggertypedocs Loading commit data...
genutils Loading commit data...
genyaml Loading commit data...
gke-certificates-controller Loading commit data...
hyperkube Loading commit data...
importverifier Loading commit data...
kube-apiserver Loading commit data...
kube-controller-manager Loading commit data...
kube-proxy Loading commit data...
kubeadm Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
linkcheck Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...