proxy

package
v1.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL