Documentation ¶
Overview ¶
Package verflag defines utility functions to handle command line flags related to version of Kubernetes.
Index ¶
Constants ¶
View Source
const ( VersionFalse versionValue = "false" VersionTrue versionValue = "true" VersionRaw versionValue = "raw" )
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶
AddFlags registers this package's flags on arbitrary FlagSets, such that they point to the same value as the global flags.
func PrintAndExitIfRequested ¶
func PrintAndExitIfRequested()
PrintAndExitIfRequested will check if --version or --version=raw was passed and, if so, print the version and exit.
func VersionVar ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.