Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type VersionBundle struct {
MulticlusterControlplane string `json:"multicluster_controlplane"`
}

var defaultBundleVersion = "0.16.1"
var defaultBundleVersion = "1.0.0"

func GetDefaultBundleVersion() string {
return defaultBundleVersion
Expand Down Expand Up @@ -85,13 +85,6 @@ func getVersionBundle(version string) (VersionBundle, error) {

// predefined bundle version
// TODO: automated version tracking
versionBundleList["0.14.0"] = VersionBundle{
OCM: "v0.14.0",
AppAddon: "v0.14.0",
PolicyAddon: "v0.14.0",
MulticlusterControlplane: "v0.5.0",
}

versionBundleList["0.15.0"] = VersionBundle{
OCM: "v0.15.0",
AppAddon: "v0.15.0",
Expand All @@ -113,8 +106,8 @@ func getVersionBundle(version string) (VersionBundle, error) {
MulticlusterControlplane: "v0.7.0",
}

versionBundleList["0.16.1"] = VersionBundle{
OCM: "v0.16.1",
versionBundleList["1.0.0"] = VersionBundle{
OCM: "v1.0.0",
AppAddon: "v0.16.0",
PolicyAddon: "v0.16.0",
MulticlusterControlplane: "v0.7.0",
Expand Down
11 changes: 7 additions & 4 deletions pkg/version/version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ func TestGetVersionBundle(t *testing.T) {
wantErr bool
}{
{
name: "default",
version: "default",
versionBundleFile: "",
expectedVersionBundle: func() VersionBundle { return expectedVersionBundle },
name: "default",
version: "default",
versionBundleFile: "",
expectedVersionBundle: func() VersionBundle {
versionBundle, _ := getVersionBundle("default")
return versionBundle
},
},
{
name: "specific version",
Expand Down