Documentation ¶
Index ¶
- func GenerateApplyCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
- func GenerateBootstrapCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
- func GenerateConfig(c *config.TalhelperConfig, dryRun bool, outDir, secretFile, mode string, ...) error
- func GenerateKubeconfigCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
- func GenerateResetCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
- func GenerateSecret(cfg string) error
- func GenerateUpgradeCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
- func GenerateUpgradeK8sCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateApplyCommand ¶
func GenerateApplyCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
GenerateApplyCommand prints out `talosctl apply-config` command for selected node. `outDir` is directory where generated talosconfig and node manifest files are located. If `node` is empty string, it prints commands for all nodes in `cfg.Nodes`. It returns error, if any.
func GenerateBootstrapCommand ¶
func GenerateBootstrapCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
GenerateBootstrapCommand prints out `talosctl bootstrap` command for selected node. `outDir` is directory where talosconfig is located. If `node` is empty string, it prints command for the first controlplane node found in `cfg.Nodes`. It returns error if `node` is not found or is not controlplane.
func GenerateConfig ¶
func GenerateConfig(c *config.TalhelperConfig, dryRun bool, outDir, secretFile, mode string, offlineMode bool) error
GenerateConfig takes `TalhelperConfig` and path to encrypted `secretFile` and generates Talos `machineconfig` files and a `talosconfig` file in `outDir`. It returns an error, if any.
func GenerateKubeconfigCommand ¶
func GenerateKubeconfigCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
GenerateKubeconfigCommand prints out `talosctl kubeconfig` command for selected node. `outDir` is directory where talosconfig is located. If `node` is empty string, it prints command for the first controlplane node found in `cfg.Nodes`. It returns error if `node` is not found or is not controlplane.
func GenerateResetCommand ¶
func GenerateResetCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
GenarateResetCommand prints out `talosctl reset` command for selected node. `outDir` is directory where generated talosconfig and node manifest files are located. If `node` is empty string, it prints commands for all nodes in `cfg.Nodes`. It returns error, if any.
func GenerateSecret ¶
GenerateSecret generates `SecretsBundle` in the specified path. It returns an error, if any.
func GenerateUpgradeCommand ¶
func GenerateUpgradeCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
GenerateUpgradeCommand prints out `talosctl upgrade` command for selected node. `outDir` is directory where talosconfig is located. If `node` is empty string, it prints commands for all nodes in `cfg.Nodes`. It returns error, if any.
func GenerateUpgradeK8sCommand ¶
func GenerateUpgradeK8sCommand(cfg *config.TalhelperConfig, outDir string, node string, extraFlags []string) error
GenerateUpgradeK8sCommand prints out `talosctl upgrade-k8s` command for selected node. `outDir` is directory where talosconfig is located. If `node` is empty string, it prints command for the first controlplane node found in `cfg.Nodes`. It returns error if `node` is not found or is not controlplane.
Types ¶
This section is empty.