config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 2 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 {
	TenantID                string `envconfig:"AZURE_TENANT_ID"`
	AutoDetectOidcIssuerUrl bool   `envconfig:"AUTO_DETECT_OIDC_ISSUER_URL"`
	OidcIssuerUrl           string `envconfig:"OIDC_ISSUER_URL"`
	// add filter tags here via 'export FILTER_TAGS="aks-clientid-syncer:true"'.
	// There are also two special tags: <NAMESPACE> and <SERVICE_ACCOUNT_NAME> which will be replaced with the actual values of the mutation request during runtime.
	GcpProjectId string `envconfig:"GCP_PROJECT_ID"`

	FilterTags map[string]string `envconfig:"FILTER_TAGS"`
	// acts as a prefix for the tags in the azure portal allowing multi tenancy
	ClusterIdentifier string `envconfig:"CLUSTER_IDENTIFIER"`

	ProviderType string `envconfig:"PROVIDER_TYPE" default:"azure"`
}

Config holds configuration from the env variables

func ParseConfig

func ParseConfig() (*Config, error)

ParseConfig parses the configuration from env variables

Jump to

Keyboard shortcuts

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