habitat-sh / habitat-operator

A Kubernetes operator for Habitat services
Apache License 2.0
61 stars 17 forks source link

Add a version display when operator boots up #348

Closed surajssd closed 6 years ago

surajssd commented 6 years ago

Right now we don't show any version information when operator starts. This helps a lot in diagnostics, even if we have operator manifests using image with latest tag, this will help us to find what version of the operator is packaged inside the image.

Something like this: https://github.com/operator-framework/operator-sdk-samples/blob/628b1758e0aba2028e7ffc9eb44d04c62d393418/memcached-operator/cmd/memcached-operator/main.go#L16-L20

And above link is not the only things we should include, we can have more info.

This also helps solve https://github.com/habitat-sh/habitat-operator/issues/228 & https://github.com/habitat-sh/habitat-operator/issues/231 issues, because then we can change all of our examples to use latest image and we don't need to worry about the version info nor being passed.