Merge pull request #1124 from skriss/ark-version-changes

ark version changes
This commit is contained in:
Andy Goldstein
2018-12-19 16:24:07 -05:00
committed by GitHub
8 changed files with 14 additions and 19 deletions
+2 -4
View File
@@ -71,7 +71,7 @@ about: Tell us about a problem you are experiencing
**Environment:**
- Ark version (use ` + "`ark version`" + `):{{.ArkVersion}} {{.GitCommit}} {{.GitTreeState}}
- Ark version (use ` + "`ark version`" + `):{{.ArkVersion}} {{.GitCommit}}
- Kubernetes version (use ` + "`kubectl version`" + `):
{{- if .KubectlVersion}}
` + "```" + `
@@ -109,7 +109,6 @@ func NewCommand() *cobra.Command {
type ArkBugInfo struct {
ArkVersion string
GitCommit string
GitTreeState string
RuntimeOS string
RuntimeArch string
KubectlVersion string
@@ -162,8 +161,7 @@ func getKubectlVersion() (string, error) {
func newBugInfo(kubectlVersion string) *ArkBugInfo {
return &ArkBugInfo{
ArkVersion: buildinfo.Version,
GitCommit: buildinfo.GitSHA,
GitTreeState: buildinfo.GitTreeState,
GitCommit: buildinfo.FormattedGitSHA(),
RuntimeOS: runtime.GOOS,
RuntimeArch: runtime.GOARCH,
KubectlVersion: kubectlVersion}
+1 -2
View File
@@ -30,8 +30,7 @@ func NewCommand() *cobra.Command {
Short: "Print the ark version and associated image",
Run: func(cmd *cobra.Command, args []string) {
fmt.Printf("Version: %s\n", buildinfo.Version)
fmt.Printf("Git commit: %s\n", buildinfo.GitSHA)
fmt.Printf("Git tree state: %s\n", buildinfo.GitTreeState)
fmt.Printf("Git commit: %s\n", buildinfo.FormattedGitSHA())
},
}