Skip to content

Commit

Permalink
Merge pull request #660 from grosser/grosser/latest
Browse files Browse the repository at this point in the history
simplify cri health check
  • Loading branch information
k8s-ci-robot authored Jul 27, 2022
2 parents 7bc362c + d764b1a commit 9a9b06d
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 9a9b06d

Please sign in to comment.