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