Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestartPKOWithEnvvarsIfNeeded ¶
func RestartPKOWithEnvvarsIfNeeded(log logr.Logger, apiEnv *manifests.PackageEnvironment) error
Compare proxy settings in environment variables with settings in `apiEnv` and replace current pko process with a new instance with updated environment variables by using unix.Exec (execve). This is needed as a workaround because Go caches proxy settings that are read from the envvars `HTTP_PROXY`, `HTTPS_PROXY` and `NO_PROXY` on the first global http(s) client call.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.