cluster

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BootstrapCmd = &cobra.Command{
	Use: "bootstrap",

	Short: "Bootstrap a KubeAid managed cluster",

	Run: func(cmd *cobra.Command, args []string) {
		core.BootstrapCluster(cmd.Context(), core.BootstrapClusterArgs{
			CreateDevEnvArgs: &core.CreateDevEnvArgs{
				ManagementClusterName:    managementClusterName,
				SkipMonitoringSetup:      skipMonitoringSetup,
				SkipPRWorkflow:           skipPRWorkflow,
				IsPartOfDisasterRecovery: false,
			},
			SkipClusterctlMove: skipClusterctlMove,
		})
	},
}
View Source
var ClusterCmd = &cobra.Command{
	Use: "cluster",

	PersistentPreRun: func(cmd *cobra.Command, args []string) {

		parser.ParseConfigFiles(cmd.Context(), globals.ConfigsDirectory)

		utils.InitTempDir(cmd.Context())

		utils.InitKnownHostsDir(cmd.Context())

		utils.EnsureRuntimeDependenciesInstalled(cmd.Context())
	},
}
View Source
var RecoverCmd = &cobra.Command{
	Use: "recover",

	Short: "Recover a KubeAid managed Kubernetes cluster",

	Run: func(cmd *cobra.Command, args []string) {
		core.RecoverCluster(cmd.Context(),
			config.ParsedGeneralConfig.Cluster.Name,
			skipPRWorkflow,
		)
	},
}
View Source
var TestCmd = &cobra.Command{
	Use: "test",

	Short: "Test whether KubeAid Bootstrap Script properly bootstrapped your cluster or not",

	Run: func(cmd *cobra.Command, args []string) {
		core.TestCluster(cmd.Context())
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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