Skip to content

Commit 8578b77

Browse files
committed
health-checker cri: fix invalid command
1 parent 80fc2c2 commit 8578b77

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: pkg/healthchecker/health_checker.go

+9-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,15 @@ 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, "--timeout="+hco.CriTimeout.String()+"--runtime-endpoint="+hco.CriSocketPath, "pods", "--latest"); err != nil {
153+
_, err := execCommand(
154+
hco.HealthCheckTimeout,
155+
hco.CriCtlPath,
156+
"--timeout="+hco.CriTimeout.String(),
157+
"--runtime-endpoint="+hco.CriSocketPath,
158+
"pods",
159+
"--latest",
160+
)
161+
if err != nil {
154162
return false, nil
155163
}
156164
return true, nil

0 commit comments

Comments
 (0)