kubernetes/pkg/apis/extensions/v1beta1
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
..
conversion_test.go ingress: Add Ingress to v1 API and update backend to defaultBackend 2020-05-22 11:57:41 -04:00
conversion.go Propagate conversion errors 2021-09-13 12:04:16 -04:00
defaults_test.go Scheduler: remove pkg/apis/core/field_constants.go 2021-02-24 18:06:29 +08:00
defaults.go api: Add DaemonSet MaxSurge 2020-12-17 09:00:55 -05:00
doc.go Change defaulter-gen input to package path 2021-08-14 11:00:18 -04:00
register.go Cleanup explicitly registered functions 2019-10-24 20:21:00 +02:00
zz_generated.conversion.go generated: Run hack/update-gofmt.sh 2021-08-24 15:47:49 -04:00
zz_generated.defaults.go De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00