kubernetes/pkg/controller
Kubernetes Submit Queue 85aa6d2405
Merge pull request #65596 from liggitt/out-of-bounds
Automatic merge from submit-queue. 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>.

Fix out of bounds error on non-64-bit machines

This fixes an out of bounds error when running the controllers on a 32-bit machine

```
W0628 17:52:30.171975       1 node_lifecycle_controller.go:782] Missing timestamp for Node kube-master. Assuming now as a timestamp.
I0628 17:52:30.172115       1 taint_manager.go:205] Starting NoExecuteTaintManager
panic: runtime error: index out of range

goroutine 1740 [running]:
k8s.io/kubernetes/pkg/controller/nodelifecycle/scheduler.(*NoExecuteTaintManager).Run.func1(0x165e6000, 0x8, 0x15984100)
        /workspace/anago-v1.11.0-rc.3.3+91e7b4fd31fcd3/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/controller/nodelifecycle/scheduler/taint_manager.go:229 +0x1f8
created by k8s.io/kubernetes/pkg/controller/nodelifecycle/scheduler.(*NoExecuteTaintManager).Run
        /workspace/anago-v1.11.0-rc.3.3+91e7b4fd31fcd3/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/pkg/controller/nodelifecycle/scheduler/taint_manager.go:217 +0x27c
```

See https://play.golang.org/p/rIpicHGHtiT for an example of the coercion overflow


/assign @wojtek-t
/kind bug

```release-note
fixes an out of range panic in the NoExecuteTaintManager controller when running a non-64-bit build
```
2018-06-29 00:55:03 -07:00
..
bootstrap Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
certificates Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
cloud Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
clusterroleaggregation Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
cronjob Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
daemon Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
deployment deployment: remove unused parameter 'podMap' 2018-06-25 09:22:58 +08:00
disruption Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
endpoint Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
garbagecollector Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
history Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
job Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
namespace Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
nodeipam Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
nodelifecycle Fix out of bounds error on non-64-bit machines 2018-06-28 16:29:52 -04:00
podautoscaler Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
podgc Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
replicaset Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
replication Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
resourcequota Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
route Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
service Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
serviceaccount Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
statefulset Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
testutil Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
ttl Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
util/node Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
volume Add metrics for attachable volumes in use 2018-06-28 11:50:51 -04:00
.import-restrictions
BUILD Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
client_builder.go remove duplicated import 2017-11-14 17:18:17 +08:00
controller_ref_manager_test.go Use apps/v1 in Deployment controller. 2018-05-22 13:42:10 -07:00
controller_ref_manager.go Use apps/v1 in Deployment controller. 2018-05-22 13:42:10 -07:00
controller_utils_test.go Use apps/v1 in Deployment controller. 2018-05-22 13:42:10 -07:00
controller_utils.go Use apps/v1 in Deployment controller. 2018-05-22 13:42:10 -07:00
doc.go
lookup_cache.go Use fnv.New32a() in hash instead adler32 2017-02-15 14:03:54 +08:00
OWNERS remove some people from OWNERS so they don't get reviews anymore 2017-07-13 10:02:21 -07:00