Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultKubeBinaryVersion is the hard coded k8 binary version based on the latest K8s release. // It is supposed to be consistent with gitMajor and gitMinor, except for local tests, where gitMajor and gitMinor are "". // Should update for each minor release! DefaultKubeBinaryVersion = "1.31" )
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get() apimachineryversion.Info
Get returns the overall codebase version. It's for detecting what code a binary was built from.
func SetDynamicVersion ¶ added in v0.28.0
SetDynamicVersion overrides the version returned as the GitVersion from Get(). The specified version must be non-empty, a valid semantic version, and must match the major/minor/patch version of the default gitVersion.
func ValidateDynamicVersion ¶ added in v0.28.0
ValidateDynamicVersion ensures the given version is non-empty, a valid semantic version, and matched the major/minor/patch version of the default gitVersion.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.