Files
kubernetes/pkg
Andrew Sy Kim 2887e707f8 kubelet: respect probe exec timeout from CRI by returning utilexec.CodeExitError
This fixes a bug where the exec timeouts are not respected with
containerd

Exec prober expects a utilexec.CodeExitError on failed probes, otherwise
the prober returns 'Unknown' and a non-nil error which the kubelet throws
away. As a temporary fix, ExecSync as part of the CRI remote runtime
should return utilexec.CodeExitError when the grpc error code is
DeadlineContextExceeded. This ensure the exec prober registers exec
timeouts as real probe failures to the kubelet. We should also add a
TimededError type to k8s.io/utils/exec since it doesn't really make
sense to use CodeExitError for exec time outs.

Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
2020-11-09 13:03:28 -05:00
..
2020-11-07 10:00:59 +01:00
2020-05-16 07:54:33 -04:00
2020-07-30 13:48:40 -04:00
2020-11-07 10:00:48 +01:00
2020-11-04 17:45:28 +01:00
2020-10-26 13:15:59 -07:00
2020-11-07 10:00:51 +01:00
2020-05-16 07:54:33 -04:00
2020-05-16 07:54:33 -04:00
2020-05-16 07:54:33 -04:00
2020-09-14 09:24:41 -04:00