Skip to content

Commit

Permalink
Merge pull request #717 from zendesk/grosser/space
Browse files Browse the repository at this point in the history
health-checker cri: fix invalid command
  • Loading branch information
k8s-ci-robot authored Feb 1, 2023
2 parents 7b68054 + 8578b77 commit b586bd9
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 b586bd9

Please sign in to comment.