upgrade

package
v1.4.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 58 Imported by: 2

Documentation

Index

Constants

View Source
const (
	StateUpgrading               = "Upgrading"
	StatePreparingLoggingInfra   = "PreparingLoggingInfra"
	StateLoggingInfraPrepared    = "LoggingInfraPrepared"
	StateCreatingUpgradeImage    = "CreatingUpgradeImage"
	StatePreparingRepo           = "PreparingRepo"
	StateRepoPrepared            = "RepoPrepared"
	StatePreparingNodes          = "PreparingNodes"
	StateUpgradingSystemServices = "UpgradingSystemServices"
	StateUpgradingNodes          = "UpgradingNodes"
	StateSucceeded               = "Succeeded"
	StateFailed                  = "Failed"
)

Variables

This section is empty.

Functions

func Register

func Register(ctx context.Context, management *config.Management, options config.Options) error

Types

type CheckUpgradeRequest

type CheckUpgradeRequest struct {
	AppVersion string            `json:"appVersion"`
	ExtraInfo  map[string]string `json:"extraInfo"`
}

type CheckUpgradeResponse

type CheckUpgradeResponse struct {
	Versions []Version `json:"versions"`
}

type NodeUpdateFunc added in v1.0.0

type NodeUpdateFunc func(node *corev1.Node)

type PreUpgradeRunningVM added in v1.4.0

type PreUpgradeRunningVM struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

type Repo added in v1.1.2

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

func NewUpgradeRepo added in v1.0.0

func NewUpgradeRepo(ctx context.Context, upgrade *harvesterv1.Upgrade, upgradeHandler *upgradeHandler) *Repo

func (*Repo) Bootstrap added in v1.1.2

func (r *Repo) Bootstrap() error

func (*Repo) CreateImageFromISO added in v1.1.2

func (r *Repo) CreateImageFromISO(isoURL string, checksum string) (*harvesterv1.VirtualMachineImage, error)

func (*Repo) GetImage added in v1.1.2

func (r *Repo) GetImage(imageName string) (*harvesterv1.VirtualMachineImage, error)

type Version

type Version struct {
	Name                 string   `json:"name"` // must be in semantic versioning
	ReleaseDate          string   `json:"releaseDate"`
	MinUpgradableVersion string   `json:"minUpgradableVersion,omitempty"`
	Tags                 []string `json:"tags"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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