Skip to content

Commit

Permalink
health-checker cri: fix invalid command
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Feb 1, 2023
1 parent 80fc2c2 commit 8578b77
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/healthchecker/health_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8578b77

Please sign in to comment.