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, skipPRFlow bool)
- func SetupCluster(ctx context.Context, args SetupClusterArgs)
- func SetupKubeAidConfig(ctx context.Context, args SetupKubeAidConfigArgs)
- func UpgradeCluster(ctx context.Context, skipPRFlow bool, 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 UpgradeCluster ¶
func UpgradeCluster(ctx context.Context, skipPRFlow bool, args UpgradeClusterArgs)
Types ¶
type BootstrapClusterArgs ¶
type BootstrapClusterArgs struct {
*CreateDevEnvArgs
SkipClusterctlMove bool
}
type CreateDevEnvArgs ¶
type ProvisionAndSetupMainClusterArgs ¶
type ProvisionAndSetupMainClusterArgs struct {
*BootstrapClusterArgs
GitAuthMethod transport.AuthMethod
IsClusterctlMoveExecuted bool
}
type SetupClusterArgs ¶
type SetupClusterArgs struct {
*CreateDevEnvArgs
IsManagementCluster bool
ClusterClient client.Client
GitAuthMethod transport.AuthMethod
}
type SetupKubeAidConfigArgs ¶
type SetupKubeAidConfigArgs struct {
*CreateDevEnvArgs
GitAuthMethod transport.AuthMethod
}
type TemplateValues ¶
type TemplateValues struct {
GeneralConfigFileContents string
CustomerID,
CustomerGitServerHostname string
config.GitConfig
config.GitCredentials
config.ForksConfig
config.ClusterConfig
*config.DisasterRecoveryConfig
config.MonitoringConfig
CAPIClusterNamespace string
AWSConfig *config.AWSConfig
AWSB64EncodedCredentials,
AWSAccountID string
AzureConfig *config.AzureConfig
ServiceAccountIssuerURL,
UAMIClientIDClusterAPI,
UAMIClientIDVelero,
AzureStorageAccountAccessKey string
HetznerConfig *config.HetznerConfig
HetznerCredentials *config.HetznerCredentials
ProvisionedClusterEndpoint *clusterAPIV1Beta1.APIEndpoint
}
type UpgradeClusterArgs ¶
Click to show internal directories.
Click to hide internal directories.