kdmimages

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 12 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"

	// CN mirror URL (some versions were not mirrored to the CN mirror, so use the global GitHub instead)
	RKE2ImageLinuxCN   = "https://rancher-mirror.rancher.cn/rke2/%s/rke2-images-all.linux-amd64.txt"
	RKE2ImageWindowsCN = "https://rancher-mirror.rancher.cn/rke2/%s/rke2-images.windows-amd64.txt"
	K3SImageURLCN      = "https://rancher-mirror.rancher.cn/k3s/%s/k3s-images.txt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterType added in v1.7.1

type ClusterType string
const (
	K3S  ClusterType = "k3s"
	RKE2 ClusterType = "rke2"
	RKE  ClusterType = "rke"
)

func (ClusterType) String added in v1.7.1

func (t ClusterType) String() string

type Getter added in v1.7.1

type Getter interface {
	// Get method is for getting the images and versions.
	Get(ctx context.Context) error

	// LinuxImageSet method gets the linux images and sources.
	LinuxImageSet() map[string]map[string]bool

	// WindowsImageSet method gets the Windows images and sources.
	WindowsImageSet() map[string]map[string]bool

	// VersionSet method gets the versions.
	VersionSet() map[string]bool

	// Source method gets the cluster type of getter.
	Source() ClusterType
}

Getter is the interface for getting images and versions from KDM data.

func NewGetter added in v1.7.3

func NewGetter(o *GetterOptions) (Getter, error)

type GetterOptions added in v1.7.3

type GetterOptions struct {
	Type           ClusterType
	RancherVersion string
	MinKubeVersion string
	KDMData        kdm.Data

	// RemoveDeprecated removes the old deprecated k8s versions and
	// only outputs the highest k8s patch version
	RemoveDeprecated bool
	InsecureSkipTLS  bool
}

Jump to

Keyboard shortcuts

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