cmd/k8s-operator: print version in startup logs

Fixes: #7813

Signed-off-by: Craig Rodrigues <rodrigc@crodrigues.org>
(cherry picked from commit 827abbeeaa)
release-branch/1.40
Craig Rodrigues 3 years ago committed by Denton Gentry
parent de26c1c3fa
commit 05493383ef
No known key found for this signature in database

@ -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 {

Loading…
Cancel
Save