upgrade

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 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 defines comma-separated list of namespaces that everest can operate in.
	Namespaces string `mapstructure:"namespaces"`
	// 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.

func (Config) NamespacesList added in v0.8.0

func (c Config) NamespacesList() []string

NamespacesList returns list of the namespaces that everest can operate in.

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