forked from openebs-archive/maya
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit includes the following changes: - Move the versioning related constants to a common package pkg/version - Use the BUILDMETA and VERSION files to specify the version for all components - Modify the build scripts to use the version info from above files, instead of computing - Provide a functionality to auto-generate version, for go get cases - Refactor to code of apiserver connection status to pkg/client/mapiserver - Change mayactl version to use the above client package for showing mapiserver status - Refactor detection of orchprovider to its own file (detect.go) - Change mayactl version to use the above detect.go to display provider - Add the COBRA cli logic for mayactl version - using above refactored changes - Change the m-apiserver version to use the refactored version package Tested the following on local setup: ``` kiran@kmaya:~/go/src/github.com/openebs/maya$ ./bin/maya/maya version Maya v0.5.0-unreleased (5254285) Go Version: go1.9.1 OS/Arch: linux / amd64 m-apiserver url: http://127.0.1.1:5656 m-apiserver status: not reachable Provider: Unknown kiran@kmaya:~/go/src/github.com/openebs/maya$ ./bin/apiserver/maya-apiserver version m-apiserver v0.5.0-unreleased (5254285) kiran@kmaya:~/go/src/github.com/openebs/maya$ ``` Also tested on minikube: ``` root@maya-apiserver-757497993-bnrcc:/# /tmp/maya version Maya v0.5.0-unreleased (5254285) Go Version: go1.9.1 OS/Arch: linux / amd64 m-apiserver url: http://172.17.0.5:5656 m-apiserver status: running Provider: KUBERNETES root@maya-apiserver-757497993-bnrcc:/# ```
- Loading branch information
Showing
17 changed files
with
237 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
unreleased |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
v0.5.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.