Skip to content

Commit 9a9b06d

Browse files
authored
Merge pull request #660 from grosser/grosser/latest
simplify cri health check
2 parents 7bc362c + d764b1a commit 9a9b06d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/healthchecker/health_checker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func getHealthCheckFunc(hco *options.HealthCheckerOptions) func() (bool, error)
150150
}
151151
case types.CRIComponent:
152152
return func() (bool, error) {
153-
if _, err := execCommand(hco.HealthCheckTimeout, hco.CriCtlPath, "--runtime-endpoint="+hco.CriSocketPath, "--image-endpoint="+hco.CriSocketPath, "pods"); err != nil {
153+
if _, err := execCommand(hco.HealthCheckTimeout, hco.CriCtlPath, "--runtime-endpoint="+hco.CriSocketPath, "pods", "--latest"); err != nil {
154154
return false, nil
155155
}
156156
return true, nil

0 commit comments

Comments
 (0)