kubernetes/pkg/apis/batch
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 Only default Job fields when feature gates are enabled 2021-03-12 20:46:52 +00:00
install 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
v1beta1 De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00
validation Add ready field to Job status 2021-10-19 15:18:34 -04:00
doc.go deepcopy: remove deepcopy register tags 2017-11-10 18:25:26 +01:00
OWNERS Use aliases in sig apps and scheduling APIs OWNERS 2021-05-17 17:56:20 +00:00
register.go fix golint failures of pkg/apis/batch 2019-04-19 18:04:54 +08:00
types.go Add ready field to Job status 2021-10-19 15:18:34 -04:00
zz_generated.deepcopy.go Add ready field to Job status 2021-10-19 15:18:34 -04:00