upgrade

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2022 License: Apache-2.0 Imports: 42 Imported by: 2

Documentation

Index

Constants

View Source
const (
	StateUpgrading               = "Upgrading"
	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 {
	HarvesterVersion string `json:"harvesterVersion"`
}

type CheckUpgradeResponse

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

type HarvesterRelease added in v1.0.0

type HarvesterRelease struct {
	Harvester       string `yaml:"harvester,omitempty"`
	HarvesterChart  string `yaml:"harvesterChart,omitempty"`
	OS              string `yaml:"os,omitempty"`
	Kubernetes      string `yaml:"kubernetes,omitempty"`
	Rancher         string `yaml:"rancher,omitempty"`
	MonitoringChart string `yaml:"monitoringChart,omitempty"`
}

type NodeUpdateFunc added in v1.0.0

type NodeUpdateFunc func(node *corev1.Node)

type UpgradeRepo added in v1.0.0

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

func NewUpgradeRepo added in v1.0.0

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

func (*UpgradeRepo) Bootstrap added in v1.0.0

func (r *UpgradeRepo) Bootstrap() error

func (*UpgradeRepo) CreateImageFromISO added in v1.0.0

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

func (*UpgradeRepo) GetImage added in v1.0.0

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

type UpgradeRepoInfo added in v1.0.0

type UpgradeRepoInfo struct {
	Release HarvesterRelease
}

func (*UpgradeRepoInfo) Load added in v1.0.0

func (info *UpgradeRepoInfo) Load(data string) error

func (*UpgradeRepoInfo) Marshall added in v1.0.0

func (info *UpgradeRepoInfo) Marshall() (string, 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"`
	ISOURL               string   `json:"isoURL"`
	ISOChecksum          string   `json:"isoChecksum"`
	Checksum             string   `json:"checksum"`
}

Jump to

Keyboard shortcuts

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