only include version number, not full build info

This commit is contained in:
Andrew Lavery
2020-01-07 17:04:41 -08:00
parent 1928f00b0f
commit f9b9dea1c6
2 changed files with 6 additions and 10 deletions

View File

@@ -30,9 +30,9 @@ const VersionFilename = "version.yaml"
func writeVersionFile(path string) error {
version := troubleshootv1beta1.SupportBundleVersion{
ApiVersion: "troubleshoot.replicated.com/v1beta1",
Kind: "SupportBundle",
VersionInfo: version.GetBuild(),
ApiVersion: "troubleshoot.replicated.com/v1beta1",
Kind: "SupportBundle",
VersionNumber: version.Version(),
}
b, err := yaml.Marshal(version)
if err != nil {

View File

@@ -1,11 +1,7 @@
package v1beta1
import (
"github.com/replicatedhq/troubleshoot/pkg/version"
)
type SupportBundleVersion struct {
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
VersionInfo version.Build `json:"versionInfo" yaml:"versionInfo"`
ApiVersion string `json:"apiVersion" yaml:"apiVersion"`
Kind string `json:"kind" yaml:"kind"`
VersionNumber string `json:"versionNumber" yaml:"versionNumber"`
}