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 ¶
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
Click to show internal directories.
Click to hide internal directories.