Documentation ¶
Overview ¶
Package upgrade implements upgrade logic for the CLI.
Package upgrade implements upgrade logic for the CLI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoUpdateAvailable = errors.New("no update available")
ErrNoUpdateAvailable is returned when no update is available.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // KubeconfigPath is a path to a kubeconfig KubeconfigPath string `mapstructure:"kubeconfig"` // VersionMetadataURL stores hostname to retrieve version metadata information from. VersionMetadataURL string `mapstructure:"version-metadata-url"` // If set, we will print the pretty output. Pretty bool }
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(cfg *Config, l *zap.SugaredLogger) (*Upgrade, error)
NewUpgrade returns a new Upgrade struct.
Click to show internal directories.
Click to hide internal directories.