Files
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
..
2017-10-15 18:18:13 -07:00
2017-10-18 17:24:04 +02:00
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-18 17:24:04 +02:00
2017-10-15 18:18:13 -07:00
2017-10-15 18:18:13 -07:00
2017-10-18 17:24:04 +02:00
2017-10-15 18:18:13 -07:00
2017-10-18 17:24:04 +02:00
2017-10-15 18:18:13 -07:00
2017-08-18 21:01:19 -07:00