talos

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineYamlBytes added in v1.17.0

func CombineYamlBytes(input [][]byte) []byte

CombineYamlBytes prepends and returns `---\n` before `input`

func GenerateClientConfigBytes

func GenerateClientConfigBytes(c *config.TalhelperConfig, input *generate.Input) ([]byte, error)

func GenerateNetworkConfigBytes added in v1.17.0

func GenerateNetworkConfigBytes(ifCfg *config.IngressFirewall) ([]byte, error)

func GenerateNodeConfig added in v1.11.0

func GenerateNodeConfig(node *config.Node, input *generate.Input, iFactory *config.ImageFactory, offlineMode bool) (taloscfg.Provider, error)

func GenerateNodeConfigBytes

func GenerateNodeConfigBytes(node *config.Node, input *generate.Input, iFactory *config.ImageFactory, offlineMode bool) ([]byte, error)

func GenerateNodeDefaultActionConfig added in v1.17.0

func GenerateNodeDefaultActionConfig(ifCfg *config.IngressFirewall) *network.DefaultActionConfigV1Alpha1

func GenerateNodeRuleConfig added in v1.17.0

func GenerateNodeRuleConfig(ifCfg *config.IngressFirewall) ([]*network.RuleConfigV1Alpha1, error)

func GetISOURL added in v1.15.0

func GetISOURL(cfg *schematic.Schematic, factory *config.ImageFactory, spec *config.MachineSpec, version string, offlineMode bool) (string, error)

func GetInstallerURL added in v1.15.0

func GetInstallerURL(cfg *schematic.Schematic, factory *config.ImageFactory, version string, offlineMode bool) (string, error)

func IsControlPlane

func IsControlPlane(c config.Provider) bool

IsControlPlane returns true if `c` is a controlplane.

func LoadTalosConfig

func LoadTalosConfig(cfgFile []byte) (config.Provider, error)

LoadTalosConfig generates Talos `config.Provider` from bytes. It also returns an error, if any.

func LoadTalosConfigFromFile

func LoadTalosConfigFromFile(cfgFile string) (config.Provider, error)

LoadTalosConfigFromFile generates Talos `config.Provider` from a file path. It also returns an error, if any.

func NewClusterInput

func NewClusterInput(c *config.TalhelperConfig, secretFile string) (*generate.Input, error)

NewClusterInput takes `Talhelper` config and path to encrypted `secretFile` and returns Talos `generate.Input`. It also returns an error, if any.

func NewSecretBundle

func NewSecretBundle(clock secrets.Clock, vc config.VersionContract) (*secrets.Bundle, error)

NewSecretsBundle creates secrets bundle generating all secrets or reading from the input options if provided

func NewSecretBundleFromCfg added in v1.6.4

func NewSecretBundleFromCfg(clock secrets.Clock, cfg config.Provider) *secrets.Bundle

NewSecretsBundleFromConfig creates secrets bundle using existing config.

func ReEncodeTalosConfig

func ReEncodeTalosConfig(f []byte) ([]byte, error)

ReEncodeTalosConfig takes `yaml` encoded bytes and re-encodes it back to 2 indentation `yaml` bytes. It also returns an error, if any.

func ValidateConfigFromBytes

func ValidateConfigFromBytes(cfgFile []byte, mode string) error

ValidateConfigFromBytes returns an error if `cfgFile` is not a valid Talos configuration for the specified `mode`.

func ValidateConfigFromFile added in v1.2.2

func ValidateConfigFromFile(path, mode string) error

ValidateConfigFromFile returns an error if file path is not a valid Talos configuration for the specified `mode`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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