Stamp GitCommit to each build
@@ -32,6 +32,7 @@ import (
// Change below variables to serve metrics on different host or port.
var (
+ GitCommit string
metricsHost = "0.0.0.0"
metricsPort int32 = 8383
operatorMetricsPort int32 = 8686
@@ -42,6 +43,7 @@ func printVersion() {
log.Info(fmt.Sprintf("Go Version: %s", runtime.Version()))
log.Info(fmt.Sprintf("Go OS/Arch: %s/%s", runtime.GOOS, runtime.GOARCH))
log.Info(fmt.Sprintf("Version of operator-sdk: %v", sdkVersion.Version))
+ log.Info(fmt.Sprintf("Keda Commit: %s", GitCommit))
}
func main() {
