upgrade

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpgradeFile

type UpgradeFile struct {
	UpgradeNotes []*UpgradeNote `yaml:"upgrade_notes" json:"upgrade_notes"`
}

UpgradeFile is a collection of upgrade notes between specific versions

func ParseUpgradeFileFromBytes

func ParseUpgradeFileFromBytes(upgradeNotes []byte) (*UpgradeFile, error)

ParseUpgradeFileFromBytes parses the raw bytes of an upgrade file and returns an UpgradeFile object. sigs.k8s.io/yaml parser is used.

func (*UpgradeFile) GetUpgradeFileBetweenVersions

func (u *UpgradeFile) GetUpgradeFileBetweenVersions(prev, target string) (*UpgradeFile, error)

GetUpgradeFileBetweenVersions gets the set of upgrade notes that are applicable to an upgrade between a previous and target version.

type UpgradeNote

type UpgradeNote struct {
	PreviousVersion string `yaml:"previous" json:"previous"`
	TargetVersion   string `yaml:"target" json:"target"`
	Note            string `yaml:"note" json:"note"`
}

UpgradeNote is a single note for upgrading between a previous version and a target version.

Jump to

Keyboard shortcuts

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