versions

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Kubernetes_V1_22 = "v1.22"
	Kubernetes_V1_23 = "v1.23"
	Kubernetes_V1_24 = "v1.24"
	Kubernetes_V1_25 = "v1.25"
	Kubernetes_V1_26 = "v1.26"
	Kubernetes_V1_27 = "v1.27"
	Kubernetes_V1_28 = "v1.28"
	Kubernetes_V1_29 = "v1.29"
	Kubernetes_V1_30 = "v1.30"
	Kubernetes_V1_31 = "v1.31"
)

Kubernetes versions

View Source
const (
	CoreDNS_V1_8_4  = "v1.8.4"
	CoreDNS_V1_8_6  = "v1.8.6"
	CoreDNS_V1_9_3  = "v1.9.3"
	CoreDNS_V1_10_1 = "v1.10.1"
	CoreDNS_V1_11_1 = "v1.11.1"
	CoreDNS_V1_11_3 = "v1.11.3"
)

CoreDNS versions

Variables

This section is empty.

Functions

func GetCoreDNSVersion

func GetCoreDNSVersion(kubernetesVersion string) (string, bool)

GetCoreDNSVersion returns the CoreDNS version for a given Kubernetes version. It accepts versions with or without the "v" prefix and handles full semver versions. The function maps based on the major and minor versions (e.g., "v1.27"). If the Kubernetes version is not found, it returns an empty string and false.

func GetKubernetesToCoreDNSVersionMap

func GetKubernetesToCoreDNSVersionMap() map[string]string

GetKubernetesToCoreDNSVersionMap returns a copy of the Kubernetes to CoreDNS version mapping. The map keys are Kubernetes versions in "vMAJOR.MINOR" format.

Types

This section is empty.

Jump to

Keyboard shortcuts

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