File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
pkg/apis/troubleshoot/v1beta1 Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,9 @@ const VersionFilename = "version.yaml"
3030
3131func 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 {
Original file line number Diff line number Diff line change 11package v1beta1
22
3- import (
4- "github.com/replicatedhq/troubleshoot/pkg/version"
5- )
6-
73type 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}
You can’t perform that action at this time.
0 commit comments