...

Package version

import "k8s.io/component-base/version"
Overview
Index
Subdirectories

Overview ▾

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

func SetDynamicVersion(dynamicVersion string) error

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

func ValidateDynamicVersion(dynamicVersion string) error

ValidateDynamicVersion ensures the given version is non-empty, a valid semantic version, and matched the major/minor/patch version of the default gitVersion.

Subdirectories

Name Synopsis
..
verflag Package verflag defines utility functions to handle command line flags related to version of Kubernetes.