Add Version flag to cephcsi

This will be helpful if someone wants
to check the cephcsi version

output
```
docker run quay.io/cephcsi/cephcsi:v1.2.1 --version
Cephcsi Version: v1.2.1
Git Commit: 4b871366327d63e27fc1abfb699f0faaf0fc16b9
GoVersion: go1.12.5
Compiler: gc
Platform: linux/amd64
```

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna
2019-11-06 10:22:07 +05:30
committed by mergify[bot]
parent 8e117db80d
commit dfc3562e29
2 changed files with 14 additions and 0 deletions

View File

@ -97,6 +97,7 @@ type Config struct {
IsControllerServer bool // if set to true start provisoner server
IsNodeServer bool // if set to true start node server
Version bool // cephcsi version
// rbd related flag
Containerized bool // whether run as containerized