mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-02-14 18:09:57 +00:00
Merge pull request #717 from zendesk/grosser/space
health-checker cri: fix invalid command
This commit is contained in:
@@ -150,7 +150,15 @@ func getHealthCheckFunc(hco *options.HealthCheckerOptions) func() (bool, error)
|
||||
}
|
||||
case types.CRIComponent:
|
||||
return func() (bool, error) {
|
||||
if _, err := execCommand(hco.HealthCheckTimeout, hco.CriCtlPath, "--timeout="+hco.CriTimeout.String()+"--runtime-endpoint="+hco.CriSocketPath, "pods", "--latest"); err != nil {
|
||||
_, err := execCommand(
|
||||
hco.HealthCheckTimeout,
|
||||
hco.CriCtlPath,
|
||||
"--timeout="+hco.CriTimeout.String(),
|
||||
"--runtime-endpoint="+hco.CriSocketPath,
|
||||
"pods",
|
||||
"--latest",
|
||||
)
|
||||
if err != nil {
|
||||
return false, nil
|
||||
}
|
||||
return true, nil
|
||||
|
||||
Reference in New Issue
Block a user