mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-15 17:51:20 +00:00
20 lines
465 B
Go
20 lines
465 B
Go
package version
|
|
|
|
import (
|
|
"github.com/go-logr/logr"
|
|
)
|
|
|
|
// These fields are set during an official build
|
|
// Global vars set from command-line arguments
|
|
var (
|
|
BuildVersion = "--"
|
|
BuildHash = "--"
|
|
BuildTime = "--"
|
|
)
|
|
|
|
//PrintVersionInfo displays the kyverno version - git version
|
|
func PrintVersionInfo(log logr.Logger) {
|
|
log.Info("Kyverno", "Version", BuildVersion)
|
|
log.Info("Kyverno", "BuildHash", BuildHash)
|
|
log.Info("Kyverno", "BuildTime", BuildTime)
|
|
}
|