kubernetes/pkg/apis
Tim Hockin 650f8cfd35 Svc REST: Validate input before IP allocation
This commit started as removing FIXME comments, but in doing so I
realized that the IP allocation process was using unvalidated user
input.  Before de-layering, validation was called twice - once before
init and once after, which the init code depended on.

Fortunately (or not?) we had duplicative checks that caught errors but
with less friendly messages.

This commit calls validation before initializing the rest of the
IP-related fields.

This also re-organizes that code a bit, cleans up error messages and
comments, and adds a test SPECIFICALLY for the errors in those cases.
2021-09-11 11:30:01 -07:00
..
abac generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
admission generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
admissionregistration generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
apiserverinternal generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
apps Merge pull request #99682 from chymy/fix-misspelling 2021-09-05 12:46:28 -07:00
authentication Merge pull request #99682 from chymy/fix-misspelling 2021-09-05 12:46:28 -07:00
authorization generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
autoscaling generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
batch generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
certificates generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
coordination generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
core Svc REST: Validate input before IP allocation 2021-09-11 11:30:01 -07:00
discovery Merge pull request #99682 from chymy/fix-misspelling 2021-09-05 12:46:28 -07:00
events generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
extensions generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
flowcontrol Merge pull request #99682 from chymy/fix-misspelling 2021-09-05 12:46:28 -07:00
imagepolicy generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
networking generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
node generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
policy generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
rbac rbac: remove AttributeRestriction documentation 2021-09-07 16:45:49 -07:00
scheduling generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
storage generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
OWNERS Set OWNERS of pkg/apis to api-(approvers/reviewers) 2021-05-04 19:33:36 +00:00