globals

package
v0.31.4 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConfigsDirectory,

	ClusterName,

	KubeaidCLIVersion,

	CloudProviderName string
	CloudProvider cloud.CloudProvider

	// When using a VPN cluster, we pre-provision the HCloud control-plane LB.
	// Without a configured hostname, its private IP is rendered as the control-plane endpoint.
	// With a configured hostname, the hostname is rendered as the endpoint and temporarily
	// resolves to this LB's public IP during bootstrap, then to this private IP afterward.
	ControlPlaneLBPrivateIP         string
	ControlPlaneHostname            string
	ControlPlaneLBBootstrapPublicIP string

	// CoturnFloatingIPs holds the HCloud Floating IP(s) kubeaid-cli
	// provisions for NetBird Coturn (STUN/TURN) HA on a multi-CP HCloud
	// VPN cluster. Set during prerequisite-infra (CreateCoturnFloatingIP)
	// and rendered into the capi-cluster chart's controlPlane.hcloud
	// .floatingIPs so each CP binds it via netplan. Empty otherwise.
	CoturnFloatingIPs []string

	ArgoCDApplicationClientCloser io.Closer
	ArgoCDApplicationClient       application.ApplicationServiceClient

	// Azure specific.
	CAPIUAMIClientID,
	VeleroUAMIClientID,
	AzureStorageAccountAccessKey string
	IsDebugModeEnabled bool

	// LogFile is this run's log file under outputs/logs/, opened once in
	// cmd/kubeaid-core/root/root.go. Writers other than the slog logger (e.g. captured KubeOne
	// output) must reuse this handle - the file isn't opened in append mode, so a second file
	// descriptor on the same path would overwrite it.
	LogFile     io.Writer
	LogFilePath string
)

Functions

func GeneralConfigFilePath added in v0.31.4

func GeneralConfigFilePath() string

GeneralConfigFilePath is where general.yaml lives for this run.

Derived from ConfigsDirectory, so it belongs here rather than in pkg/config: that package holds the schema and must stay importable without this one.

func SecretsConfigFilePath added in v0.31.4

func SecretsConfigFilePath() string

SecretsConfigFilePath is where secrets.yaml lives for this run.

Types

This section is empty.

Jump to

Keyboard shortcuts

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