kubernetes/pkg/apis/core/validation
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
..
conditional_validation.go Mixed protocol support for Services with type=LoadBalancer (#94028) 2020-11-13 13:21:04 -08:00
conditional_validation_test.go Mixed protocol support for Services with type=LoadBalancer (#94028) 2020-11-13 13:21:04 -08:00
doc.go pkg/apis/core: fixup package names 2017-11-09 12:14:07 +01:00
events.go code cleanup for pkg/api and pkg/apis 2021-04-28 08:57:23 +08:00
events_test.go Promote new Event API to v1 2020-07-01 10:50:28 -04:00
OWNERS Prune stale entries from OWNERS files 2021-04-13 20:54:50 -04:00
validation.go Svc REST: Validate input before IP allocation 2021-09-11 11:30:01 -07:00
validation_test.go Fix validation on ETP: "" is not valid 2021-09-11 11:30:01 -07:00