Skip to content

Commit f9b9dea

Browse files
committed
only include version number, not full build info
1 parent 1928f00 commit f9b9dea

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

cmd/troubleshoot/cli/version.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ const VersionFilename = "version.yaml"
3030

3131
func writeVersionFile(path string) error {
3232
version := troubleshootv1beta1.SupportBundleVersion{
33-
ApiVersion: "troubleshoot.replicated.com/v1beta1",
34-
Kind: "SupportBundle",
35-
VersionInfo: version.GetBuild(),
33+
ApiVersion: "troubleshoot.replicated.com/v1beta1",
34+
Kind: "SupportBundle",
35+
VersionNumber: version.Version(),
3636
}
3737
b, err := yaml.Marshal(version)
3838
if err != nil {
Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
package v1beta1
22

3-
import (
4-
"github.com/replicatedhq/troubleshoot/pkg/version"
5-
)
6-
73
type SupportBundleVersion struct {
8-
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
9-
Kind string `json:"kind" yaml:"kind"`
10-
VersionInfo version.Build `json:"versionInfo" yaml:"versionInfo"`
4+
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
5+
Kind string `json:"kind" yaml:"kind"`
6+
VersionNumber string `json:"versionNumber" yaml:"versionNumber"`
117
}

0 commit comments

Comments
 (0)