config

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EksaGitPassphraseTokenEnv = "EKSA_GIT_SSH_KEY_PASSPHRASE"
	EksaGitPrivateKeyTokenEnv = "EKSA_GIT_PRIVATE_KEY"
	EksaGitKnownHostsFileEnv  = "EKSA_GIT_KNOWN_HOSTS"
	SshKnownHostsEnv          = "SSH_KNOWN_HOSTS"
	EksaAccessKeyIdEnv        = "EKSA_AWS_ACCESS_KEY_ID"
	EksaSecretAccessKeyEnv    = "EKSA_AWS_SECRET_ACCESS_KEY"
	AwsAccessKeyIdEnv         = "AWS_ACCESS_KEY_ID"
	AwsSecretAccessKeyEnv     = "AWS_SECRET_ACCESS_KEY"
	EksaAwsConfigFileEnv      = "EKSA_AWS_CONFIG_FILE"
	EksaRegionEnv             = "EKSA_AWS_REGION"
)
View Source
const (
	HttpsProxyKey = "HTTPS_PROXY"
	HttpProxyKey  = "HTTP_PROXY"
	NoProxyKey    = "NO_PROXY"
)
View Source
const (
	EksavSphereUsernameKey = "EKSA_VSPHERE_USERNAME"
	EksavSpherePasswordKey = "EKSA_VSPHERE_PASSWORD"
	// EksavSphereCPUsernameKey holds Username for cloud provider.
	EksavSphereCPUsernameKey = "EKSA_VSPHERE_CP_USERNAME"
	// EksavSphereCPPasswordKey holds Password for cloud provider.
	EksavSphereCPPasswordKey = "EKSA_VSPHERE_CP_PASSWORD"
)

Variables

View Source
var VSphereAdminPrivsFile string
View Source
var VSphereGlobalPrivsFile string
View Source
var VSphereReadOnlyPrivs string
View Source
var VSphereUserPrivsFile string

Functions

func GetProxyConfigFromEnv added in v0.11.0

func GetProxyConfigFromEnv() map[string]string

func ReadCredentials

func ReadCredentials() (username, password string, err error)

func ReadCredentialsFromSecret added in v0.15.2

func ReadCredentialsFromSecret(ctx context.Context, client client.Client) (username, password string, err error)

ReadCredentialsFromSecret reads from Kubernetes secret registry-credentials. Returns the username and password, or error.

func SetCredentialsEnv added in v0.15.2

func SetCredentialsEnv(username, password string) error

SetCredentialsEnv sets the registry username and password env variables.

Types

type CliConfig

type CliConfig struct {
	GitSshKeyPassphrase string
	GitPrivateKeyFile   string
	GitKnownHostsFile   string
}

type CreateClusterCLIConfig added in v0.17.0

type CreateClusterCLIConfig struct {
	SkipCPIPCheck           bool
	NodeStartupTimeout      time.Duration
	UnhealthyMachineTimeout time.Duration
	MaxUnhealthy            intstr.IntOrString
	WorkerMaxUnhealthy      intstr.IntOrString
}

CreateClusterCLIConfig is the config we use for create cluster specific configurations.

type DeleteClusterCLIConfig added in v0.19.0

type DeleteClusterCLIConfig struct {
	ClusterNamespace string
}

DeleteClusterCLIConfig is the config we use for delete cluster specific configurations.

type UpgradeClusterCLIConfig added in v0.17.0

type UpgradeClusterCLIConfig struct {
	NodeStartupTimeout      time.Duration
	UnhealthyMachineTimeout time.Duration
	MaxUnhealthy            intstr.IntOrString
	WorkerMaxUnhealthy      intstr.IntOrString
}

UpgradeClusterCLIConfig is the config we use for upgrade cluster specific configurations.

type VSphereUserConfig added in v0.11.2

type VSphereUserConfig struct {
	EksaVsphereUsername   string
	EksaVspherePassword   string
	EksaVsphereCPUsername string
	EksaVsphereCPPassword string
}

func NewVsphereUserConfig added in v0.11.2

func NewVsphereUserConfig() *VSphereUserConfig

Jump to

Keyboard shortcuts

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