kubernetes/pkg/apis/core
Tim Hockin 11a25bfeb6
De-share the Handler struct in core API (#105979)
* De-share the Handler struct in core API

An upcoming PR adds a handler that only applies on one of these paths.
Having fields that don't work seems bad.

This never should have been shared.  Lifecycle hooks are like a "write"
while probes are more like a "read". HTTPGet and TCPSocket don't really
make sense as lifecycle hooks (but I can't take that back). When we add
gRPC, it is EXPLICITLY a health check (defined by gRPC) not an arbitrary
RPC - so a probe makes sense but a hook does not.

In the future I can also see adding lifecycle hooks that don't make
sense as probes.  E.g. 'sleep' is a common lifecycle request. The only
option is `exec`, which requires having a sleep binary in your image.

* Run update scripts
2021-10-29 13:15:11 -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 De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00
validation De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -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_test.go make taint.ToString() consistent with the reverse parsing logic 2019-07-16 21:06:01 +08:00
taint.go Fix golint errors in pkg/apis/core (#82919) 2019-09-25 11:06:51 -07:00
toleration_test.go add UT for apk/apis/core/toleration.go 2017-11-15 09:44:27 +08:00
toleration.go
types_test.go Add test for EphemeralContainerCommon struct tags 2021-10-19 23:01:07 -04:00
types.go De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00
zz_generated.deepcopy.go De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00