generate

package
v3.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: BSD-3-Clause Imports: 16 Imported by: 4

Documentation

Index

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

func GenerateSecret(cfg string) error

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.

Jump to

Keyboard shortcuts

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