constants

package
v0.0.0-...-9516177 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RawReleaseData represents the supported versions for this release
	RawReleaseData = `` /* 666-byte string literal not displayed */

)
View Source
const (
	// RawTestData represents the supported versions for this release
	RawTestData = `` /* 634-byte string literal not displayed */

)

Variables

View Source
var (
	// ReleaseData includes all release versioning information
	ReleaseData *versionsapi.ReleaseInfo
	// TestData includes all test versioning information
	TestData *TestInfo
	// KubernetesVersions has a map of the supported Kubernetes versions
	KubernetesVersions map[string]versionsapi.KubernetesVersion
	// ContainerdTestVersions has a map of the testing containerd versions
	ContainerdTestVersions map[string]ContainerdVersionDependencies
	// KubernetesTestVersions has a map of the testing kubernetes
	// component versions
	KubernetesTestVersions map[string]KubernetesVersionDependencies
)
View Source
var (
	// BuildVersion is the oneinfra version provided at build time
	BuildVersion string
)

Functions

func KubernetesComponentVersion

func KubernetesComponentVersion(version string, component releasecomponents.KubernetesComponent) (string, error)

KubernetesComponentVersion returns the component version for the given Kubernetes version and component

func KubernetesTestComponentVersion

func KubernetesTestComponentVersion(version string, component releasecomponents.KubernetesTestComponent) (string, error)

KubernetesTestComponentVersion returns the test component version for the given Kubernetes version and component

func KubernetesVersionBundle

func KubernetesVersionBundle(version string) (*versions.KubernetesVersion, error)

KubernetesVersionBundle returns the KubernetesVersion for the provided version

func UpdateOneInfraVersionsConfigMap

func UpdateOneInfraVersionsConfigMap(ctx context.Context, client client.Client) error

UpdateOneInfraVersionsConfigMap creates or updates the oneinfra version ConfigMap

Types

type ContainerdVersionDependencies

type ContainerdVersionDependencies struct {
	Version           string `json:"version"`
	CRIToolsVersion   string `json:"criToolsVersion"`
	CNIPluginsVersion string `json:"cniPluginsVersion"`
}

ContainerdVersionDependencies represents a supported containerd version for testing

type KubernetesVersionDependencies

type KubernetesVersionDependencies struct {
	ContainerdVersion string `json:"containerdVersion"`
	PauseVersion      string `json:"pauseVersion"`
}

KubernetesVersionDependencies represents a supported Kubernetes version for testing

func KubernetesVersionTestDependencyBundle

func KubernetesVersionTestDependencyBundle(version string) (*KubernetesVersionDependencies, error)

KubernetesVersionTestDependencyBundle returns the KubernetesVersionDependencies for the provided test version

type TestInfo

type TestInfo struct {
	ContainerdVersions []ContainerdVersionDependencies          `json:"containerdVersions"`
	KubernetesVersions map[string]KubernetesVersionDependencies `json:"kubernetesVersions"`
}

TestInfo represents a list of supported component versions for testing

Jump to

Keyboard shortcuts

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