MCPcopy Create free account
hub / github.com/cloudnative-pg/cloudnative-pg / Command

Function Command

tests/utils/exec/exec.go:163–174  ·  view source on GitHub ↗

Command wraps the utils.ExecCommand pre-setting values constant during tests

(
	ctx context.Context,
	kubeInterface kubernetes.Interface,
	restConfig *rest.Config,
	pod corev1.Pod,
	containerName string,
	timeout *time.Duration,
	command ...string,
)

Source from the content-addressed store, hash-verified

161// Command wraps the utils.ExecCommand pre-setting values constant during
162// tests
163func Command(
164 ctx context.Context,
165 kubeInterface kubernetes.Interface,
166 restConfig *rest.Config,
167 pod corev1.Pod,
168 containerName string,
169 timeout *time.Duration,
170 command ...string,
171) (string, string, error) {
172 return pkgutils.ExecCommand(ctx, kubeInterface, restConfig,
173 pod, containerName, timeout, command...)
174}

Calls

no outgoing calls

Tested by 1

runShowHelpInPodFunction · 0.74