You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of hard-coding `Kubernetes` in the output generated when
executing a binary using the `version/verflag` feature using
`--version`, use a variable `programName` which can be overwritten using
the `-X` linker flag, e.g.:
```
go build -ldflags "-X k8s.io/component-base/version/verflag.programName=my-tool" ...
```
This allows to use the package in non-Kubernetes applications.
Signed-off-by: Nicolas Trangez <[email protected]>
See: kubernetes#90138
0 commit comments