Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultLogLevel = "info" DefaultLogFormat = "standard" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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"` // TemplateConfigExitOnRetryFailure is the // AGENT_INJECT_TEMPLATE_CONFIG_EXIT_ON_RETRY_FAILURE environment variable. TemplateConfigExitOnRetryFailure string `split_words:"true"` // TemplateConfigStaticSecretRenderInterval is the // AGENT_INJECT_TEMPLATE_STATIC_SECRET_RENDER_INTERVAL environment variable. TemplateConfigStaticSecretRenderInterval string `envconfig:"AGENT_INJECT_TEMPLATE_STATIC_SECRET_RENDER_INTERVAL"` // 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"` // VaultNamespace is the AGENT_INJECT_VAULT_NAMESPACE environment variable. VaultNamespace 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"` // ResourceRequestEphemeral is the AGENT_INJECT_EPHEMERAL_REQUEST environment variable. ResourceRequestEphemeral string `envconfig:"AGENT_INJECT_EPHEMERAL_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"` // ResourceLimitEphemeral is the AGENT_INJECT_EPHEMERAL_LIMIT environment variable. ResourceLimitEphemeral string `envconfig:"AGENT_INJECT_EPHEMERAL_LIMIT"` // TLSMinVersion is the AGENT_INJECT_TLS_MIN_VERSION environment variable TLSMinVersion string `envconfig:"tls_min_version"` // TLSCipherSuites is the AGENT_INJECT_TLS_CIPHER_SUITES environment variable TLSCipherSuites string `envconfig:"tls_cipher_suites"` // AuthMinBackoff is the AGENT_MIN_BACKOFF environment variable AuthMinBackoff string `envconfig:"AGENT_INJECT_AUTH_MIN_BACKOFF"` // AuthMaxBackoff is the AGENT_MAX_BACKOFF environment variable AuthMaxBackoff string `envconfig:"AGENT_INJECT_AUTH_MAX_BACKOFF"` // DisableIdleConnections is the AGENT_INJECT_DISABLE_IDLE_CONNECTIONS environment variable DisableIdleConnections string `split_words:"true"` // DisableKeepAlives is the AGENT_INJECT_DISABLE_KEEP_ALIVES environment variable DisableKeepAlives string `split_words:"true"` }
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
Click to show internal directories.
Click to hide internal directories.