kdmimages

package
v1.5.0-rc6 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The "images-all" file is only provided for RKE2 amd64 images. This may be subject to change.
	RKE2ImageLinux   = "https://github.com/rancher/rke2/releases/download/%s/rke2-images-all.linux-amd64.txt"
	RKE2ImageWindows = "https://github.com/rancher/rke2/releases/download/%s/rke2-images.windows-amd64.txt"

	K3SImageURL = "https://github.com/k3s-io/k3s/releases/download/%s/k3s-images.txt"

	K3S  = "k3s"
	RKE2 = "rke2"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ReleaseImages

type ReleaseImages struct {
	Source string
	Data   map[string]interface{}
}

func (*ReleaseImages) GetImages

func (r *ReleaseImages) GetImages() ([]string, error)

func (*ReleaseImages) GetVersions

func (r *ReleaseImages) GetVersions() ([]string, error)

type SystemImages

type SystemImages struct {
	RancherVersion    string
	RkeSysImages      map[string]kdm.RKESystemImages
	LinuxSvcOptions   map[string]kdm.KubernetesServicesOptions
	WindowsSvcOptions map[string]kdm.KubernetesServicesOptions
	RancherVersions   map[string]kdm.K8sVersionInfo

	LinuxInfo   *VersionInfo
	WindowsInfo *VersionInfo

	// map[image][source]bool
	LinuxImageSet   map[string]map[string]bool
	WindowsImageSet map[string]map[string]bool
}

func (*SystemImages) GetImages

func (s *SystemImages) GetImages() error

type UpgradeImages

type UpgradeImages struct {
	Source         string
	RancherVersion string
	MinKubeVersion string
	Data           map[string]interface{}
}

UpgradeImages generates external image list from KDM RKE2/K3S data

func (*UpgradeImages) GetImages

func (g *UpgradeImages) GetImages() ([]string, error)

type VersionInfo

type VersionInfo struct {
	RKESystemImages           map[string]kdm.RKESystemImages
	KubernetesServicesOptions map[string]kdm.KubernetesServicesOptions
}

Jump to

Keyboard shortcuts

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