Skip to content

Commit 7b8e647

Browse files
committed
major minor version
Signed-off-by: Srinivasan Parthasarathy <spartha@us.ibm.com>
1 parent bdfec56 commit 7b8e647

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

basecli/k8s.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ func RenderTpl(k8sExp k8sExperiment, filePath string) (*bytes.Buffer, error) {
9797
// ensure it is a valid template
9898
tmpl, err = template.New("tpl").Funcs(template.FuncMap{
9999
"toYAML": toYAML,
100-
"defaultImage": func() string { return "iter8/iter8:" + (RootCmd.Version)[1:] },
101-
"iter8MajorMinorVersion": func() string { return RootCmd.Version },
100+
"defaultImage": func() string { return "iter8/iter8:" + majorMinor[1:] },
101+
"iter8MajorMinorVersion": func() string { return majorMinor },
102102
}).Option("missingkey=error").Funcs(sprig.TxtFuncMap()).Parse(string(tplBytes))
103103
if err != nil {
104104
log.Logger.WithStackTrace(err.Error()).Error("unable to parse template file")

basecli/version.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ import (
1010
var short bool
1111

1212
var (
13-
// version is the current version of Iter8.
14-
version = "v0.8"
13+
// version is the semantic version of Iter8
14+
// this variable is intended to be set using LDFLAGS at build time
15+
version = "v0.8.8"
16+
// version is the current major/minor version of Iter8
17+
// set this manually whenever the major or minor version changes
18+
majorMinor = "v0.8"
1519
// metadata is extra build time data
1620
metadata = ""
1721
// gitCommit is the git sha1

0 commit comments

Comments
 (0)