mirror of
https://github.com/tailscale/tailscale.git
synced 2025-04-16 11:41:39 +00:00
cmd/k8s-operator: print version in startup logs
Fixes: #7813 Signed-off-by: Craig Rodrigues <rodrigc@crodrigues.org>
This commit is contained in:
parent
d1ecb1f43b
commit
827abbeeaa
@ -48,6 +48,7 @@ import (
|
|||||||
"tailscale.com/types/logger"
|
"tailscale.com/types/logger"
|
||||||
"tailscale.com/types/opt"
|
"tailscale.com/types/opt"
|
||||||
"tailscale.com/util/dnsname"
|
"tailscale.com/util/dnsname"
|
||||||
|
"tailscale.com/version"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
@ -235,7 +236,7 @@ waitOnline:
|
|||||||
startlog.Fatalf("could not create controller: %v", err)
|
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 {
|
if shouldRunAuthProxy {
|
||||||
cfg, err := restConfig.TransportConfig()
|
cfg, err := restConfig.TransportConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user