core

package
v0.0.0-...-603c858 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: AGPL-3.0 Imports: 30 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, skipKubeAidConfigSetup, skipClusterctlMove bool, cloudProvider cloud.CloudProvider, isPartOfDisasterRecovery bool)

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, cloudProvider cloud.CloudProvider)

func SetupCluster

func SetupCluster(ctx context.Context, kubeClient client.Client)

NOTE : Sealed Secrets must already be installed in the cluster.

func SetupKubeAidConfig

func SetupKubeAidConfig(ctx context.Context, gitAuthMethod transport.AuthMethod, onlyUpdateSealedSecrets bool)

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.

Types

type TemplateValues

type TemplateValues struct {
	CustomerID,
	GitUsername,
	GitPassword string
	config.ClusterConfig
	config.ForksConfig
	AWSConfig     *config.AWSConfig
	HetznerConfig *config.HetznerConfig
	config.MonitoringConfig
	CAPIClusterNamespace,
	AWSB64EncodedCredentials,
	AWSAccountID string
}

Jump to

Keyboard shortcuts

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