injector

package
v0.8.1-0...-e8608f3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultLogLevel  = "info"
	DefaultLogFormat = "standard"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	UI cli.Ui
	// contains filtered or unexported fields
}

func (*Command) Help

func (c *Command) Help() string

func (*Command) Run

func (c *Command) Run(args []string) int

TODO Add flag for Vault TLS

func (*Command) Synopsis

func (c *Command) Synopsis() string

type Specification

type Specification struct {
	// Listen is the AGENT_INJECT_LISTEN environment variable.
	Listen string `split_words:"true" `

	// LogLevel is the AGENT_INJECT_LOG_LEVEL environment variable.
	LogLevel string `split_words:"true"`

	// LogFormat is the AGENT_INJECT_LOG_FORMAT environment variable
	LogFormat string `split_words:"true"`

	// TLSAuto is the AGENT_INJECT_TLS_AUTO environment variable.
	TLSAuto string `envconfig:"tls_auto"`

	// TLSAutoHosts is the AGENT_INJECT_TLS_AUTO_HOSTS environment variable.
	TLSAutoHosts string `envconfig:"tls_auto_hosts"`

	// TLSCertFile is the AGENT_INJECT_TLS_CERT_FILE environment variable.
	TLSCertFile string `envconfig:"tls_cert_file"`

	// TLSKeyFile is the AGENT_INJECT_TLS_KEY_FILE environment variable.
	TLSKeyFile string `envconfig:"tls_key_file"`

	// VaultAddr is the AGENT_INJECT_VAULT_ADDR environment variable.
	VaultAddr string `split_words:"true"`

	// ProxyAddr is the AGENT_INJECT_PROXY_ADDR environment variable.
	ProxyAddr string `split_words:"true"`

	// VaultImage is the AGENT_INJECT_VAULT_IMAGE environment variable.
	VaultImage string `split_words:"true"`

	// VaultAuthType is the AGENT_INJECT_VAULT_AUTH_TYPE environment variable.
	VaultAuthType string `split_words:"true"`

	// VaultAuthPath is the AGENT_INJECT_VAULT_AUTH_PATH environment variable.
	VaultAuthPath string `split_words:"true"`

	// RevokeOnShutdown is AGENT_INJECT_REVOKE_ON_SHUTDOWN environment variable.
	RevokeOnShutdown string `split_words:"true"`

	// RunAsUser is the AGENT_INJECT_RUN_AS_USER environment variable. (uid)
	RunAsUser string `envconfig:"AGENT_INJECT_RUN_AS_USER"`

	// RunAsGroup is the AGENT_INJECT_RUN_AS_GROUP environment variable. (gid)
	RunAsGroup string `envconfig:"AGENT_INJECT_RUN_AS_GROUP"`

	// RunAsSameUser is the AGENT_INJECT_RUN_AS_SAME_USER environment variable.
	RunAsSameUser string `envconfig:"AGENT_INJECT_RUN_AS_SAME_USER"`

	// SetSecurityContext is the AGENT_INJECT_SET_SECURITY_CONTEXT environment variable.
	SetSecurityContext string `envconfig:"AGENT_INJECT_SET_SECURITY_CONTEXT"`

	// TelemetryPath is the AGENT_INJECT_TELEMETRY_PATH environment variable.
	TelemetryPath string `split_words:"true"`

	// UseLeaderElector is the AGENT_INJECT_USE_LEADER_ELECTOR environment variable.
	UseLeaderElector string `split_words:"true"`

	// DefaultTemplate is the AGENT_INJECT_DEFAULT_TEMPLATE environment variable.
	DefaultTemplate string `split_words:"true"`

	// ResourceRequestCPU is the AGENT_INJECT_CPU_REQUEST environment variable.
	ResourceRequestCPU string `envconfig:"AGENT_INJECT_CPU_REQUEST"`

	// ResourceRequestMem is the AGENT_INJECT_MEM_REQUEST environment variable.
	ResourceRequestMem string `envconfig:"AGENT_INJECT_MEM_REQUEST"`

	// ResourceLimitCPU is the AGENT_INJECT_CPU_LIMIT environment variable.
	ResourceLimitCPU string `envconfig:"AGENT_INJECT_CPU_LIMIT"`

	// ResourceLimitMem is the AGENT_INJECT_MEM_LIMIT environment variable.
	ResourceLimitMem string `envconfig:"AGENT_INJECT_MEM_LIMIT"`
}

Specification are the supported environment variables, prefixed with AGENT_INJECT. The names of the variables in the struct are split using camel case: Specification.VaultAddr = AGENT_INJECT_VAULT_ADDR

Jump to

Keyboard shortcuts

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