Skip to content

Commit af5e194

Browse files
authored
Merge pull request #27 from coderbirju/add-namespace-option
add global options to healthcheck command
2 parents 804a8cd + 61bf0a1 commit af5e194

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pkg/healthcheck/healthcheck_manager_linux.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ func CreateTimer(ctx context.Context, container containerd.Container, cfg *confi
6262
return fmt.Errorf("could not determine nerdctl executable path: %v", err)
6363
}
6464

65-
cmdOpts = append(cmdOpts, nerdctlPath, "container", "healthcheck", containerID)
65+
cmdOpts = append(cmdOpts, nerdctlPath,
66+
"--namespace", cfg.Namespace,
67+
"--address", cfg.Address,
68+
"--data-root", cfg.DataRoot,
69+
"container", "healthcheck", containerID)
6670
if log.G(ctx).Logger.IsLevelEnabled(log.DebugLevel) {
6771
cmdOpts = append(cmdOpts, "--debug")
6872
}

0 commit comments

Comments
 (0)