kubernetes/pkg/kubelet/container
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
..
testing mockery to mockgen conversion 2021-09-25 16:15:08 +00:00
cache_test.go Fix int->string casts 2020-07-24 16:23:12 -04:00
cache.go fix typo in /pkg/kubelet/container 2019-05-31 18:50:39 +08:00
container_gc.go Structured Logging migration: modify volume and container part logs of kubelet. 2021-03-17 08:59:03 +08:00
container_hash_test.go Omit nil or empty field when calculating hash value 2019-08-22 13:46:52 +08:00
helpers_test.go The function shouldRecordEvent will panic when the value of input object is nil 2020-10-16 21:13:49 +00:00
helpers.go De-share the Handler struct in core API (#105979) 2021-10-29 13:15:11 -07:00
os.go Fix an issue when rotated logs of dead containers are not removed. 2020-07-24 10:06:24 +02:00
ref_test.go Fix staticchecks ST1005,S1002,S1008,S1039 in pkg/kubelet 2020-09-07 10:53:43 +08:00
ref.go Fix golint failures for kubelet/container 2020-05-20 19:01:23 +00:00
resize.go Fix golint failures for kubelet/container 2020-05-20 19:01:23 +00:00
runtime_cache_fake.go Fix golint failures for kubelet/container 2020-05-20 19:01:23 +00:00
runtime_cache_test.go
runtime_cache.go mockery to mockgen conversion 2021-09-25 16:15:08 +00:00
runtime.go mockery to mockgen conversion 2021-09-25 16:15:08 +00:00
sync_result_test.go go-1.12: fix 'go vet' failures 2019-03-01 18:48:17 +02:00
sync_result.go fix golint issues in pkg/kubelet/container 2020-06-19 15:48:08 +00:00