kubernetes/pkg/apis/core
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
..
fuzzer Promote the ServiceInternalTrafficPolicy field to Beta and on by default (#103462) 2021-07-06 06:16:30 -07:00
helper Update helper methods to print and parse ReadWriteOncePod access mode 2021-06-28 21:25:37 -07:00
install hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
pods hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
v1 generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
validation Svc REST: Validate input before IP allocation 2021-09-11 11:30:01 -07:00
annotation_key_constants.go Fix a typo in comment 2021-07-23 19:47:33 +08:00
doc.go Fix golint errors in pkg/apis/core (#82919) 2019-09-25 11:06:51 -07:00
json.go Fix golint errors in pkg/apis/core (#82919) 2019-09-25 11:06:51 -07:00
objectreference.go Fix golint errors in pkg/apis/core (#82919) 2019-09-25 11:06:51 -07:00
OWNERS Set OWNERS of pkg/apis to api-(approvers/reviewers) 2021-05-04 19:33:36 +00:00
register.go Switch ephemeralcontainers SR to Pod Kind 2021-04-13 13:36:48 +02:00
resource.go Downward API hugepages 2020-11-10 16:09:13 -05:00
taint.go Fix golint errors in pkg/apis/core (#82919) 2019-09-25 11:06:51 -07:00
taint_test.go make taint.ToString() consistent with the reverse parsing logic 2019-07-16 21:06:01 +08:00
toleration.go pkg/apis/core: fixup package names 2017-11-09 12:14:07 +01:00
toleration_test.go add UT for apk/apis/core/toleration.go 2017-11-15 09:44:27 +08:00
types.go Merge pull request #104747 from kinvolk/invidian/typos 2021-09-09 18:04:57 -07:00
zz_generated.deepcopy.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00