upgrade

package
v1.2.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: Apache-2.0 Imports: 50 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 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"`
	MinUpgradableVersion string `yaml:"minUpgradableVersion,omitempty"`
}

type NodeUpdateFunc added in v1.0.0

type NodeUpdateFunc func(node *corev1.Node)

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 RepoInfo added in v1.1.2

type RepoInfo struct {
	Release HarvesterRelease
}

func (*RepoInfo) Load added in v1.1.2

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

func (*RepoInfo) Marshall added in v1.1.2

func (info *RepoInfo) 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"`
}

Jump to

Keyboard shortcuts

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