1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/pkg/version/version.go

21 lines
465 B
Go
Raw Normal View History

2019-05-29 15:24:19 -07:00
package version
import (
2020-03-17 11:05:20 -07:00
"github.com/go-logr/logr"
)
2019-05-29 15:24:19 -07:00
// These fields are set during an official build
// Global vars set from command-line arguments
2019-05-29 15:24:19 -07:00
var (
BuildVersion = "--"
BuildHash = "--"
BuildTime = "--"
)
//PrintVersionInfo displays the kyverno version - git version
2020-03-17 11:05:20 -07:00
func PrintVersionInfo(log logr.Logger) {
log.Info("Kyverno", "Version", BuildVersion)
log.Info("Kyverno", "BuildHash", BuildHash)
log.Info("Kyverno", "BuildTime", BuildTime)
2019-05-29 15:24:19 -07:00
}