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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.