proxyopts

package
v0.0.0-...-e6e6fdd Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(source Source, ast *resource.Ast, cfg Config) error

func EnvironmentVariables

func EnvironmentVariables(cfg Config) ([]corev1.EnvVar, error)

All pods will have web proxy settings injected as environment variables. This is useful for automatic proxy configuration so that apps don't need to be aware of infrastructure quirks. The web proxy should be set up as an external service.

Proxy settings on Linux is in a messy state. Some applications and libraries read the upper-case variables, while some read the lower-case versions. We handle this by setting both versions.

On top of everything, the Java virtual machine does not honor these environment variables. Instead, JVM must be started with a specific set of command-line options. These are also provided as environment variables, for convenience.

Types

type Config

type Config interface {
	GetGoogleProjectID() string
	GetWebProxyOptions() config.Proxy
}

type Source

type Source interface {
	resource.Source
	GetWebProxy() bool
}

Jump to

Keyboard shortcuts

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