improbable-eng / etcd-cluster-operator

A controller to deploy and manage etcd clusters inside of Kubernetes
MIT License
129 stars 35 forks source link

Add a --version flag and log the version before starting the operator #153

Closed wallrj closed 4 years ago

wallrj commented 4 years ago

Here's how it logs the version on startup:

==== START logs for container manager of pod eco-system/eco-controller-manager-798b645f4c-9xmcp ====
2020-02-12T17:07:37.630Z    INFO    setup   Starting manager    {"version": "v0.1.0-43-gdfd7b81"}
2020-02-12T17:07:38.036Z    INFO    controller-runtime.metrics  metrics server is starting to listen    {"addr": ":8080"}

https://1165-210613496-gh.circle-artifacts.com/0/tmp/etcd-e2e/teste2e-parallel-backup/eco-system/eco-controller-manager-798b645f4c-9xmcp/logs.txt