kubernetes/cmd
Kubernetes Submit Queue 7f49a2ccfc Merge pull request #54142 from neolit123/cmdutil-01
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)
2017-10-19 11:50:05 -07:00
..
clicheck update BUILD files 2017-10-15 18:18:13 -07:00
cloud-controller-manager Update bazel 2017-10-18 17:24:04 +02:00
gendocs update BUILD files 2017-10-15 18:18:13 -07:00
genkubedocs update BUILD files 2017-10-15 18:18:13 -07:00
genman update BUILD files 2017-10-15 18:18:13 -07:00
genswaggertypedocs update BUILD files 2017-10-15 18:18:13 -07:00
genutils update BUILD files 2017-10-15 18:18:13 -07:00
genyaml update BUILD files 2017-10-15 18:18:13 -07:00
gke-certificates-controller Update bazel 2017-10-18 17:24:04 +02:00
hyperkube update BUILD files 2017-10-15 18:18:13 -07:00
importverifier update BUILD files 2017-10-15 18:18:13 -07:00
kube-apiserver update admission webhook to accept client config 2017-10-19 09:52:58 -04:00
kube-controller-manager Update bazel 2017-10-18 17:24:04 +02:00
kube-proxy add ProxyModeIPVS in proxy mode validation 2017-10-19 14:34:37 +08:00
kubeadm Merge pull request #54142 from neolit123/cmdutil-01 2017-10-19 11:50:05 -07:00
kubectl update BUILD files 2017-10-15 18:18:13 -07:00
kubelet Merge pull request #54154 from mtaufen/deprecate-enable-custom-metrics 2017-10-19 03:41:11 -07:00
kubemark Update bazel 2017-10-18 17:24:04 +02:00
linkcheck update BUILD files 2017-10-15 18:18:13 -07:00
BUILD Remove seemingly obsolete binaries 2017-08-18 21:01:19 -07:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00