Skip to content

Commit

Permalink
simplify cri health check
Browse files Browse the repository at this point in the history
  • Loading branch information
grosser committed Mar 29, 2022
1 parent 4412a2b commit d764b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/healthchecker/health_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func getHealthCheckFunc(hco *options.HealthCheckerOptions) func() (bool, error)
}
case types.CRIComponent:
return func() (bool, error) {
if _, err := execCommand(hco.HealthCheckTimeout, hco.CriCtlPath, "--runtime-endpoint="+hco.CriSocketPath, "--image-endpoint="+hco.CriSocketPath, "pods"); err != nil {
if _, err := execCommand(hco.HealthCheckTimeout, hco.CriCtlPath, "--runtime-endpoint="+hco.CriSocketPath, "pods", "--latest"); err != nil {
return false, nil
}
return true, nil
Expand Down

0 comments on commit d764b1a

Please sign in to comment.