upgrade

package
v0.9.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package upgrade implements upgrade logic for the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Namespaces is a user-defined string represents raw non-validated comma-separated list of namespaces for everest to operate in.
	Namespaces string `mapstructure:"namespaces"`
	// NamespacesList validated list of namespaces that everest can operate in.
	NamespacesList []string `mapstructure:"namespaces-map"`
	// KubeconfigPath is a path to a kubeconfig
	KubeconfigPath string `mapstructure:"kubeconfig"`
	// UpgradeOLM defines do we need to upgrade OLM or not.
	UpgradeOLM bool `mapstructure:"upgrade-olm"`
	// SkipWizard skips wizard during installation.
	SkipWizard bool `mapstructure:"skip-wizard"`
}

Config defines configuration required for upgrade command.

type Upgrade

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

Upgrade struct implements upgrade command.

func NewUpgrade

func NewUpgrade(c Config, l *zap.SugaredLogger) (*Upgrade, error)

NewUpgrade returns a new Upgrade struct.

func (*Upgrade) Run

func (u *Upgrade) Run(ctx context.Context) error

Run runs the operators installation process.

Jump to

Keyboard shortcuts

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