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

Function execKubectl

internal/cmd/plugin/psql/exec_unix.go:31–33  ·  view source on GitHub ↗

execKubectl replaces the current process with kubectl. This function does not return on success.

(kubectlPath string, kubectlExec []string)

Source from the content-addressed store, hash-verified

29// execKubectl replaces the current process with kubectl.
30// This function does not return on success.
31func execKubectl(kubectlPath string, kubectlExec []string) error {
32 return syscall.Exec(kubectlPath, kubectlExec, os.Environ()) // #nosec
33}

Callers 1

ExecMethod · 0.70

Calls 1

ExecMethod · 0.80

Tested by

no test coverage detected