cmd/k8s-operator: print version in startup logs

Fixes: #7813

Signed-off-by: Craig Rodrigues <[email protected]>
This commit is contained in:
Craig Rodrigues authored and Dave Anderson committed 2023-05-08 18:56:21 -07:00
1 parent d1ecb1f43b
commit 827abbeeaa
1 file changed
+2 -1
+2 -1
View File
@@ -48,6 +48,7 @@ import (
"tailscale.com/types/logger"
"tailscale.com/types/opt"
"tailscale.com/util/dnsname"
"tailscale.com/version"
)
func main() {
@@ -235,7 +236,7 @@ waitOnline:
startlog.Fatalf("could not create controller: %v", err)
}
startlog.Infof("Startup complete, operator running")
startlog.Infof("Startup complete, operator running, version: %s", version.Long())
if shouldRunAuthProxy {
cfg, err := restConfig.TransportConfig()
if err != nil {