core

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: AGPL-3.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KubeaidConfigFileTemplates embed.FS

Functions

func BootstrapCluster

func BootstrapCluster(ctx context.Context, args BootstrapClusterArgs)

func CreateDevEnv

func CreateDevEnv(ctx context.Context, args *CreateDevEnvArgs)

func CreateOrUpdateSealedSecretFiles

func CreateOrUpdateSealedSecretFiles(ctx context.Context, clusterDir string)

Creates / updates all necessary Sealed Secrets files for the given cluster, in the user's KubeAid config repository.

func DeleteCluster

func DeleteCluster(ctx context.Context)

func RecoverCluster

func RecoverCluster(ctx context.Context, managementClusterName string, skipPRWorkflow bool)

func SetupCluster

func SetupCluster(ctx context.Context, args SetupClusterArgs)

func SetupKubeAidConfig

func SetupKubeAidConfig(ctx context.Context, args SetupKubeAidConfigArgs)

Does the following :

(1) Creates / updates all necessary files for the given cluster, in the user's KubeAid config
		repository.

(2) Commits and pushes those changes to the upstream.

(3) Waits for those changes to get merged into the default branch.

It expects the KubeAid Config repository to be already cloned in the temp directory.

func TestCluster added in v0.12.0

func TestCluster(ctx context.Context)

func UpgradeCluster

func UpgradeCluster(ctx context.Context, args UpgradeClusterArgs)

Types

type BootstrapClusterArgs

type BootstrapClusterArgs struct {
	*CreateDevEnvArgs
	SkipClusterctlMove bool
}

type CreateDevEnvArgs

type CreateDevEnvArgs struct {
	ManagementClusterName string

	SkipMonitoringSetup,
	SkipPRWorkflow,

	IsPartOfDisasterRecovery bool
}

type ProvisionAndSetupMainClusterArgs

type ProvisionAndSetupMainClusterArgs struct {
	*BootstrapClusterArgs
	GitAuthMethod transport.AuthMethod
}

type SetupClusterArgs

type SetupClusterArgs struct {
	*CreateDevEnvArgs

	ClusterType   string
	ClusterClient client.Client

	GitAuthMethod transport.AuthMethod
}

type SetupKubeAidConfigArgs

type SetupKubeAidConfigArgs struct {
	*CreateDevEnvArgs
	GitAuthMethod transport.AuthMethod
}

type TemplateValues

type TemplateValues struct {
	GeneralConfigFileContents string

	CustomerGitServerHostname string
	config.GitConfig
	config.GitCredentials
	config.ForksConfig
	config.ArgoCDConfig

	config.ClusterConfig
	config.KubePrometheusConfig
	CAPIClusterNamespace string

	AWSConfig      *config.AWSConfig
	AWSCredentials *config.AWSCredentials
	AWSB64EncodedCredentials,
	AWSAccountID string

	AzureConfig      *config.AzureConfig
	AzureCredentials *config.AzureCredentials
	CAPIUAMIClientID,
	VeleroUAMIClientID,
	AzureStorageAccountAccessKey,
	ServiceAccountIssuerURL string

	HetznerConfig      *config.HetznerConfig
	HetznerCredentials *config.HetznerCredentials

	BareMetalConfig *config.BareMetalConfig

	ProvisionedClusterEndpoint *clusterAPIV1Beta1.APIEndpoint

	*config.DisasterRecoveryConfig

	*config.ObmondoConfig

	SSHPrivateKey            string
	ExtraKnownHostsForArgoCD string
}

type UpgradeClusterArgs

type UpgradeClusterArgs struct {
	NewKubernetesVersion string
	CloudSpecificUpdates any

	SkipPRWorkflow bool
}

Jump to

Keyboard shortcuts

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