Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Cloud          string `envconfig:"AZURE_ENVIRONMENT" default:"AzurePublicCloud"`
	TenantID       string `envconfig:"AZURE_TENANT_ID" required:"true"`
	ProxyImage     string `envconfig:"PROXY_IMAGE"`
	ProxyInitImage string `envconfig:"PROXY_INIT_IMAGE"`

	AzureKubernetesTokenProxy string `envconfig:"AZURE_KUBERNETES_TOKEN_PROXY"`

	AzureKubernetesSNIName string `envconfig:"AZURE_KUBERNETES_SNI_NAME"`
	AzureKubernetesCAData  string `envconfig:"AZURE_KUBERNETES_CA_DATA"`
	// AzureKubernetesCAConfigMapName is the name of the ConfigMap that contains the CA data
	// The key in the ConfigMap must be "ca.crt".
	AzureKubernetesCAConfigMapName    string           `envconfig:"AZURE_KUBERNETES_CA_CONFIGMAP_NAME"`
	AzureKubernetesCACTBSignerName    string           `envconfig:"AZURE_KUBERNETES_CA_CTB_SIGNER_NAME"`
	AzureKubernetesCACTBLabelSelector LabelSelectorPtr `envconfig:"AZURE_KUBERNETES_CA_CTB_LABEL_SELECTOR"`
}

Config holds configuration from the env variables

func ParseConfig

func ParseConfig() (*Config, error)

ParseConfig parses the configuration from env variables

type LabelSelectorPtr added in v1.6.0

type LabelSelectorPtr struct {
	Value *metav1.LabelSelector
}

func (*LabelSelectorPtr) Decode added in v1.6.0

func (l *LabelSelectorPtr) Decode(value string) error

Decode implements envconfig.Decoder

Jump to

Keyboard shortcuts

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