Skip to content

Commit

Permalink
Print operator version when running the operator binary
Browse files Browse the repository at this point in the history
In operator-sdk v0.12.0 this change is added
  • Loading branch information
miguelsorianod committed Feb 28, 2020
1 parent c0e1b16 commit 15e3fd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ var (
var log = logf.Log.WithName("cmd")

func printVersion() {
log.Info(fmt.Sprintf("Operator Version: %s", version.Version))
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))
Expand Down

0 comments on commit 15e3fd2

Please sign in to comment.