kubernetes/pkg/apis/core/validation
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
..
conditional_validation_test.go Mixed protocol support for Services with type=LoadBalancer (#94028) 2020-11-13 13:21:04 -08:00
conditional_validation.go Mixed protocol support for Services with type=LoadBalancer (#94028) 2020-11-13 13:21:04 -08:00
doc.go
events_test.go Promote new Event API to v1 2020-07-01 10:50:28 -04:00
events.go 'New' Event namespace validate failed (#100125) 2021-09-16 04:29:45 -07:00
OWNERS Prune stale entries from OWNERS files 2021-04-13 20:54:50 -04:00
validation_test.go De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00
validation.go De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00