mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 01:16:55 +00:00
* init container to cleanup stale webhook configurations if any. * remove test code * use internal pkg for os signals * move webhook cleanup before http.server shutown. * update make file and remove init * update CI script
20 lines
464 B
Go
20 lines
464 B
Go
package version
|
|
|
|
import (
|
|
"github.com/golang/glog"
|
|
)
|
|
|
|
// 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() {
|
|
glog.Infof("Kyverno version: %s\n", BuildVersion)
|
|
glog.Infof("Kyverno BuildHash: %s\n", BuildHash)
|
|
glog.Infof("Kyverno BuildTime: %s\n", BuildTime)
|
|
}
|