k3s/pkg/registry
Kubernetes Submit Queue 82eeda0885
Merge pull request #60089 from rpothier/allocator-for-ipv6
Automatic merge from submit-queue (batch tested with PRs 57550, 60089). 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>.

Remove subnet size restriction for IPv6

RangeSize was restricting IPv6 subnets to a /66 due to the
logic using a uint64. This is not practical for IPv6.
This change removes the /64 restriction, but also sets a limit
on the range that can be allocated, so that the bitmap will not grow too large.

**What this PR does / why we need it**:
This PR removes the /66 restriction in ipallocator for IPv6. It is not practical to restrict
IPv6 to /66. Currently a /64 or /48 is not allowed. The problem with removing the restriction is
the bitmap that tracks the subnets can grow really large, so a  limit
on the max size of the subnet was set to 65536. 
Setting the max size will have a side-effect with larger subnets that the allocator
will allocate in a smaller section of IP's, this will need to be addressed in a follow-on PR.

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #60081

**Special notes for your reviewer**:

**Release note**:

```release-note-none
```
2018-02-23 04:01:35 -08:00
..
admissionregistration refactor resource_config.go thoroughly and remove useless code in registry 2018-01-27 16:10:58 +08:00
apps Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
authentication refactor resource_config.go thoroughly and remove useless code in registry 2018-01-27 16:10:58 +08:00
authorization Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
autoscaling Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
batch Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
cachesize update BUILD files 2017-10-15 18:18:13 -07:00
certificates Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
core Merge pull request #60089 from rpothier/allocator-for-ipv6 2018-02-23 04:01:35 -08:00
events refactor resource_config.go thoroughly and remove useless code in registry 2018-01-27 16:10:58 +08:00
extensions Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
networking Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
policy Merge pull request #54933 from php-coder/psp_introduce_new_api_group 2018-02-20 15:44:50 -08:00
rbac Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
registrytest registry: move generic registry tester into k8s.io/apiserver 2017-11-16 09:03:42 +01:00
scheduling Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
settings Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
storage Merge pull request #59391 from msau42/topology-beta 2018-02-20 13:26:07 -08:00
BUILD Move workload registries to apps package 2018-02-07 13:29:06 -05:00
OWNERS Add liggitt to registry approvers 2017-09-04 11:20:38 -04:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00