k3s/pkg/controller/statefulset
Eric Paris 5e22e149c5 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.
2017-07-31 14:43:29 -04:00
..
BUILD fix mutation in statefulset sync 2017-07-20 12:33:11 +02:00
OWNERS remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00
stateful_pod_control.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
stateful_pod_control_test.go Fix usage a make(struct, len()) followed by append() 2017-07-31 14:43:29 -04:00
stateful_set.go Merge pull request #48976 from supereagle/cleanup-api-package 2017-07-25 12:14:38 -07:00
stateful_set_control.go run hack/update-all 2017-06-22 11:31:03 -07:00
stateful_set_control_test.go StatefulSet: Remove `pod.alpha.kubernetes.io/initialized` annotation. 2017-07-24 10:18:47 -07:00
stateful_set_status_updater.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
stateful_set_status_updater_test.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
stateful_set_test.go Scripted migration from clientset_generated to client-go. 2017-07-17 15:05:37 -07:00
stateful_set_utils.go StatefulSet: Remove `pod.alpha.kubernetes.io/initialized` annotation. 2017-07-24 10:18:47 -07:00
stateful_set_utils_test.go StatefulSet: Remove `pod.alpha.kubernetes.io/initialized` annotation. 2017-07-24 10:18:47 -07:00