installer

package
v1.76.6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

type Installer struct {
	// contains filtered or unexported fields
}

func New

func New(dc dependency.Container, logger *log.Logger) *Installer

func (*Installer) Download

func (i *Installer) Download(ctx context.Context, source *v1alpha1.ModuleSource, moduleName, version string) (string, error)

func (*Installer) GetImageDigest

func (i *Installer) GetImageDigest(ctx context.Context, source *v1alpha1.ModuleSource, moduleName, version string) (string, error)

func (*Installer) GetInstalled added in v1.74.2

func (i *Installer) GetInstalled() (map[string]struct{}, error)

GetInstalled gets all installed modules from <downloaded>/modules dir

func (*Installer) Install

func (i *Installer) Install(ctx context.Context, module, version, tempModulePath string) error

func (*Installer) IsEmbeddedPresent added in v1.76.3

func (i *Installer) IsEmbeddedPresent(module string) bool

IsEmbeddedPresent reports whether an embedded copy of the module is shipped on the filesystem. While it is present, the module search path resolves the module to its embedded copy, so a downloaded module of the same name must not be activated (only staged).

Embedded modules are shipped with an optional weight prefix in their directory name (e.g. 040-node-manager), while module holds the bare name (node-manager), so the lookup must strip the prefix instead of stat'ing the bare name directly.

func (*Installer) Restore

func (i *Installer) Restore(ctx context.Context, ms *v1alpha1.ModuleSource, module, version string) error

Restore ensures the module image is present, verified, and mounted.

func (*Installer) SetClusterUUID

func (i *Installer) SetClusterUUID(id string)

func (*Installer) Stage added in v1.76.3

func (i *Installer) Stage(ctx context.Context, module, version, tempModulePath string) error

Stage materializes a module on the filesystem from a temp dir without activating it (no symlink/mount), so an embedded copy of the same name keeps serving the module until Deckhouse drops the embedded copy on upgrade.

func (*Installer) StageFromRegistry added in v1.76.3

func (i *Installer) StageFromRegistry(ctx context.Context, source *v1alpha1.ModuleSource, module, version string) error

StageFromRegistry materializes a module on the filesystem from the registry without activating it (no symlink/mount).

func (*Installer) Uninstall

func (i *Installer) Uninstall(ctx context.Context, module string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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