Documentation
¶
Index ¶
- Variables
- func BootstrapCluster(ctx context.Context, args BootstrapClusterArgs)
- func CreateDevEnv(ctx context.Context, args *CreateDevEnvArgs)
- func CreateOrUpdateSealedSecretFiles(ctx context.Context, clusterDir string)
- func DeleteCluster(ctx context.Context)
- func RecoverCluster(ctx context.Context, managementClusterName string, skipPRWorkflow bool)
- func SetupCluster(ctx context.Context, args SetupClusterArgs)
- func SetupKubeAidConfig(ctx context.Context, args SetupKubeAidConfigArgs)
- func TestCluster(ctx context.Context)
- func UpgradeCluster(ctx context.Context, args UpgradeClusterArgs)
- type BootstrapClusterArgs
- type CreateDevEnvArgs
- type ProvisionAndSetupMainClusterArgs
- type SetupClusterArgs
- type SetupKubeAidConfigArgs
- type TemplateValues
- type UpgradeClusterArgs
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 ¶
Creates / updates all necessary Sealed Secrets files for the given cluster, in the user's KubeAid config repository.
func DeleteCluster ¶
func RecoverCluster ¶
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 UpgradeCluster ¶
func UpgradeCluster(ctx context.Context, args UpgradeClusterArgs)
Types ¶
type BootstrapClusterArgs ¶
type BootstrapClusterArgs struct {
*CreateDevEnvArgs
SkipClusterctlMove bool
}
type CreateDevEnvArgs ¶
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.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
}
type UpgradeClusterArgs ¶
Click to show internal directories.
Click to hide internal directories.