Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AWSCmd = &cobra.Command{ Use: "aws", Short: "Generate a sample KubeAid Bootstrap Script config file, for deploying an AWS based cluster", Run: func(cmd *cobra.Command, args []string) { config.GenerateSampleConfig(context.Background(), constants.CloudProviderAWS, "") }, }
View Source
var GenerateCmd = &cobra.Command{ Use: "generate", PersistentPreRun: func(cmd *cobra.Command, args []string) { if _, err := os.Stat(constants.OutputPathGeneratedConfigsDirectory); err == nil { slog.ErrorContext(cmd.Context(), "Config files directory already exists", slog.String("path", constants.OutputPathGeneratedConfigsDirectory), ) os.Exit(1) } }, RunE: func(cmd *cobra.Command, args []string) error { return cmd.Help() }, }
View Source
var HetznerCloudCmd = &cobra.Command{ Use: "cloud", Short: "Generate a sample KubeAid Bootstrap Script config file for Hetzner Cloud", Run: func(cmd *cobra.Command, args []string) { config.GenerateSampleConfig( context.Background(), constants.CloudProviderHetzner, constants.HetznerModeHCloud, ) }, }
HetznerCloudCmd represents the hcloud subcommand
View Source
var HetznerCmd = &cobra.Command{
Use: "hetzner",
Short: "Generate a sample KubeAid Bootstrap Script config file for Hetzner",
}
HetznerCmd represents the base command for Hetzner options
View Source
var HetznerRobotCmd = &cobra.Command{ Use: "robot", Short: "Generate a sample KubeAid Bootstrap Script config file for Hetzner bare metal robot", Run: func(cmd *cobra.Command, args []string) { config.GenerateSampleConfig( context.Background(), constants.CloudProviderHetzner, constants.HetznerModeBareMetal, ) }, }
HetznerRobotCmd represents the baremetal-robot subcommand
View Source
var LocalCmd = &cobra.Command{ Use: "local", Short: "Generate a sample KubeAid Bootstrap Script config file, for deploying a local K3D based cluster (for testing purposes)", Run: func(cmd *cobra.Command, args []string) { config.GenerateSampleConfig(context.Background(), constants.CloudProviderLocal, "") }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.