Skip to content

Commit d764b1a

Browse files
committed
simplify cri health check
1 parent 4412a2b commit d764b1a

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)