Documentation
¶
Overview ¶
Package install provides functionality to run the installer container for Talos.
Index ¶
- func PullAndValidateInstallerImage(ctx context.Context, resources state.State, ...) error
- func RunInstallerContainer(disk, platform, ref string, cfg configcore.Config, ...) error
- type Option
- func OptionsFromUpgradeRequest(r runtime.Runtime, in *machineapi.UpgradeRequest) []Option
- func WithExtraKernelArgs(s []string) Option
- func WithForce(b bool) Option
- func WithOptions(opts Options) Option
- func WithPull(b bool) Optiondeprecated
- func WithUpgrade(b bool) Option
- func WithZero(b bool) Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PullAndValidateInstallerImage ¶
func PullAndValidateInstallerImage(ctx context.Context, resources state.State, registryBuilder image.RegistriesBuilder, ref string) error
PullAndValidateInstallerImage pulls down the installer and validates that it can run.
func RunInstallerContainer ¶
func RunInstallerContainer( disk, platform, ref string, cfg configcore.Config, cfgContainer configcore.Container, resources state.State, registryBuilder image.RegistriesBuilder, opts ...Option, ) error
RunInstallerContainer performs an installation via the installer container.
Types ¶
type Option ¶
Option is a functional option.
func OptionsFromUpgradeRequest ¶
func OptionsFromUpgradeRequest(r runtime.Runtime, in *machineapi.UpgradeRequest) []Option
OptionsFromUpgradeRequest builds installer options from upgrade request.
func WithExtraKernelArgs ¶
WithExtraKernelArgs sets the extra args.
type Options ¶
type Options struct {
// Deprecated: Pull is not used in new Lifecycle API.
Pull bool
Force bool
Upgrade bool
Zero bool
ExtraKernelArgs []string
}
Options describes the install options.
func DefaultInstallOptions ¶
func DefaultInstallOptions() Options
DefaultInstallOptions returns default options.
Click to show internal directories.
Click to hide internal directories.