kubernetes/test
Kubernetes Submit Queue 23bb765498 Merge pull request #49491 from eparis/make-plus-append-is-bad
Automatic merge from submit-queue (batch tested with PRs 49898, 49897, 49919, 48860, 49491)

Fix usage a make(struct, len()) followed by append()

A couple of places in the code we allocate with make() but then use
append(), instead of copy() or direct assignment. This results in a
slice with len() zero elements at the front followed by the expected
data. The correct form for such usage is `make(struct, 0, len())`.

I found these by running:
```
$ git grep -EI -A7 'make\([^,]*, len\(' | grep 'append(' -B7 | grep -v vendor
```
And then manually looking through the results. I'm sure something better
could exist.

**Release note**:
```release-note
NONE
```
2017-08-01 17:57:20 -07:00
..
e2e Merge pull request #49491 from eparis/make-plus-append-is-bad 2017-08-01 17:57:20 -07:00
e2e_federation Merge pull request #49538 from supereagle/versioned-coreclient 2017-07-29 05:28:49 -07:00
e2e_node Merge pull request #47019 from jessfraz/allowPrivilegeEscalation 2017-07-31 16:56:58 -07:00
fixtures Flag support in kubectl plugins 2017-07-18 15:35:40 -03:00
images Merge pull request #47019 from jessfraz/allowPrivilegeEscalation 2017-07-31 16:56:58 -07:00
integration Merge pull request #47665 from ironcladlou/gc-poll-types 2017-07-29 05:28:53 -07:00
kubemark Fix bug in command retrying in kubemark 2017-07-24 17:18:50 +02:00
list Enable auto-generating sources rules 2017-01-05 14:14:13 -08:00
soak use the core client with version 2017-07-26 19:16:02 +08:00
utils # This is a combination of 2 commits. 2017-07-19 00:28:40 -04:00
BUILD auto-generated bazel BUILD file changes 2017-01-19 08:00:52 +05:30
OWNERS Add sig-testing OWNERS_ALIASES 2017-07-25 11:05:18 -07:00
test_owners.csv remove deprecated flags LowDiskSpaceThresholdMB and OutOfDiskTransitionFrequency 2017-07-20 13:23:13 -07:00
test_owners.json remove deprecated flags LowDiskSpaceThresholdMB and OutOfDiskTransitionFrequency 2017-07-20 13:23:13 -07:00