mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Fix docker exec logic. Without this patch, kubelet was not receiving any output from docker exec
and was incorrectly handling the output.
This commit is contained in:
@@ -43,7 +43,7 @@ func (pr execProber) Probe(e uexec.Cmd) (probe.Result, error) {
|
||||
if err != nil {
|
||||
return probe.Unknown, err
|
||||
}
|
||||
if strings.ToLower(string(data)) != defaultHealthyOutput {
|
||||
if !strings.HasPrefix(strings.ToLower(string(data)), defaultHealthyOutput) {
|
||||
return probe.Failure, nil
|
||||
}
|
||||
return probe.Success, nil
|
||||
|
Reference in New Issue
Block a user