Documentation
¶
Overview ¶
Package config ...
Package config ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GeneralCAHttpClient ¶
GeneralCAHttpClient returns an http.Client configured for general use
func GeneralCAHttpClientWithTimeout ¶
GeneralCAHttpClientWithTimeout returns an http.Client configured for general use
Types ¶
type APIConfig ¶ added in v1.1.0
type APIConfig struct {
PassthroughSecret string `toml:"PassthroughSecret" json:"-"`
}
APIConfig config
type BluemixConfig ¶
type BluemixConfig struct {
IamURL string `toml:"iam_url"`
IamClientID string `toml:"iam_client_id"`
IamClientSecret string `toml:"iam_client_secret" json:"-"`
IamAPIKey string `toml:"iam_api_key" json:"-"`
RefreshToken string `toml:"refresh_token" json:"-"`
APIEndpointURL string `toml:"containers_api_route"`
PrivateAPIRoute string `toml:"containers_api_route_private"`
Encryption bool `toml:"encryption"`
CSRFToken string `toml:"containers_api_csrf_token" json:"-"`
}
BluemixConfig ...
type Config ¶
type Config struct {
Server *ServerConfig `required:"true"`
Bluemix *BluemixConfig //`required:"true"`
Softlayer *SoftlayerConfig
VPC *VPCProviderConfig
IKS *IKSConfig
API *APIConfig
}
Config is the parent struct for all the configuration information for -cluster
func ParseConfig ¶
ParseConfig loads the config from file
func ReadConfig ¶
ReadConfig loads the config from k8s secret ...
type IKSConfig ¶
type IKSConfig struct {
Enabled bool `toml:"iks_enabled" envconfig:"IKS_ENABLED"`
IKSBlockProviderName string `toml:"iks_block_provider_name" envconfig:"IKS_BLOCK_PROVIDER_NAME"`
IKSFileProviderName string `toml:"iks_file_provider_name" envconfig:"IKS_FILE_PROVIDER_NAME"`
}
IKSConfig config
type ServerConfig ¶
type ServerConfig struct {
// DebugTrace is a flag to enable the debug level trace within the provider code.
DebugTrace bool `toml:"debug_trace" envconfig:"DEBUG_TRACE"`
}
ServerConfig configuration options for the provider server itself
type SoftlayerConfig ¶
type SoftlayerConfig struct {
SoftlayerBlockEnabled bool `toml:"softlayer_block_enabled" envconfig:"SOFTLAYER_BLOCK_ENABLED"`
SoftlayerBlockProviderName string `toml:"softlayer_block_provider_name" envconfig:"SOFTLAYER_BLOCK_PROVIDER_NAME"`
SoftlayerFileEnabled bool `toml:"softlayer_file_enabled" envconfig:"SOFTLAYER_FILE_ENABLED"`
SoftlayerFileProviderName string `toml:"softlayer_file_provider_name" envconfig:"SOFTLAYER_FILE_PROVIDER_NAME"`
SoftlayerUsername string `toml:"softlayer_username" json:"-"`
SoftlayerAPIKey string `toml:"softlayer_api_key" json:"-"`
SoftlayerEndpointURL string `toml:"softlayer_endpoint_url"`
SoftlayerDataCenter string `toml:"softlayer_datacenter"`
SoftlayerTimeout string `toml:"softlayer_api_timeout" envconfig:"SOFTLAYER_API_TIMEOUT"`
SoftlayerVolProvisionTimeout string `toml:"softlayer_vol_provision_timeout" envconfig:"SOFTLAYER_VOL_PROVISION_TIMEOUT"`
SoftlayerRetryInterval string `toml:"softlayer_api_retry_interval" envconfig:"SOFTLAYER_API_RETRY_INTERVAL"`
//Configuration values for JWT tokens
SoftlayerJWTKID string `toml:"softlayer_jwt_kid"`
SoftlayerJWTTTL int `toml:"softlayer_jwt_ttl"`
SoftlayerJWTValidFrom int `toml:"softlayer_jwt_valid"`
SoftlayerIMSEndpointURL string `toml:"softlayer_iam_endpoint_url"`
SoftlayerAPIDebug bool
}
SoftlayerConfig ...
type VPCProviderConfig ¶
type VPCProviderConfig struct {
Enabled bool `toml:"vpc_enabled" envconfig:"VPC_ENABLED"`
IamClientID string `toml:"iam_client_id"`
IamClientSecret string `toml:"iam_client_secret" json:"-"`
//valid values (gc|g2), if unspecified, GC will take precedence(if both are specified)
//during e2e test, user can specify its own preferred type during execution
VPCTypeEnabled string `toml:"vpc_type_enabled" envconfig:"VPC_TYPE_ENABLED"`
VPCBlockProviderName string `toml:"vpc_block_provider_name" envconfig:"VPC_BLOCK_PROVIDER_NAME"`
VPCBlockProviderType string `toml:"provider_type"`
VPCVolumeType string `toml:"vpc_volume_type" envconfig:"VPC_VOLUME_TYPE"`
EndpointURL string `toml:"gc_riaas_endpoint_url"`
PrivateEndpointURL string `toml:"gc_riaas_endpoint_private_url"`
TokenExchangeURL string `toml:"gc_token_exchange_endpoint_url"`
APIKey string `toml:"gc_api_key" json:"-"`
ResourceGroupID string `toml:"gc_resource_group_id"`
VPCAPIGeneration int `toml:"vpc_api_generation" envconfig:"VPC_API_GENERATION"`
APIVersion string `toml:"api_version,omitempty" envconfig:"VPC_API_VERSION"`
//NG Properties
G2EndpointURL string `toml:"g2_riaas_endpoint_url"`
G2EndpointPrivateURL string `toml:"g2_riaas_endpoint_private_url"`
G2TokenExchangeURL string `toml:"g2_token_exchange_endpoint_url"`
G2APIKey string `toml:"g2_api_key" json:"-"`
G2ResourceGroupID string `toml:"g2_resource_group_id"`
G2VPCAPIGeneration int `toml:"g2_vpc_api_generation" envconfig:"G2_VPC_API_GENERATION"`
G2APIVersion string `toml:"g2_api_version,omitempty" envconfig:"G2_VPC_API_VERSION"`
Encryption bool `toml:"encryption"`
VPCTimeout string `toml:"vpc_api_timeout,omitempty" envconfig:"VPC_API_TIMEOUT"`
MaxRetryAttempt int `toml:"max_retry_attempt,omitempty" envconfig:"VPC_RETRY_ATTEMPT"`
MaxRetryGap int `toml:"max_retry_gap,omitempty" envconfig:"VPC_RETRY_INTERVAL"`
MaxVPCRetryAttempt int `toml:"max_vpc_retry_attempt,omitempty" envconfig:"MAX_VPC_RETRY_ATTEMPT"`
MinVPCRetryGap int `toml:"min_vpc_retry_gap,omitempty" envconfig:"MIN_VPC_RETRY_INTERVAL"`
MinVPCRetryGapAttempt int `toml:"min_vpc_retry_gap_attempt,omitempty" envconfig:"MIN_VPC_RETRY_INTERVAL_ATTEMPT"`
// IKSTokenExchangePrivateURL, for private cluster support hence using for all cluster types
IKSTokenExchangePrivateURL string `toml:"iks_token_exchange_endpoint_private_url"`
IsIKS bool `toml:"is_iks,omitempty"`
ClusterVolumeLabel string
}
VPCProviderConfig configures a specific instance of a VPC provider (e.g. GT/GC/Z)
Click to show internal directories.
Click to hide internal directories.