kubernetes/pkg/kubelet/prober
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
..
results hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
testing hack/update-bazel.sh 2021-02-28 15:17:29 -08:00
common_test.go De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00
OWNERS Remove tallclair from some OWNERS files 2020-05-11 11:44:38 -07:00
prober_manager_test.go De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00
prober_manager.go Migrate to k8s.io/utils/clock in pkg/kubelet 2021-09-10 12:20:09 +02:00
prober_test.go De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00
prober.go Migrate missed log entries in kubelet 2021-03-18 14:26:26 -07:00
worker_test.go Fix test 2021-04-14 17:02:27 +08:00
worker.go Fix startupProbe behaviour changed 2021-04-16 10:11:52 +08:00