File tree Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Expand file tree Collapse file tree 2 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ type VersionBundle struct {
4545 MulticlusterControlplane string `json:"multicluster_controlplane"`
4646}
4747
48- var defaultBundleVersion = "0.16.1 "
48+ var defaultBundleVersion = "1.0.0 "
4949
5050func GetDefaultBundleVersion () string {
5151 return defaultBundleVersion
@@ -85,13 +85,6 @@ func getVersionBundle(version string) (VersionBundle, error) {
8585
8686 // predefined bundle version
8787 // TODO: automated version tracking
88- versionBundleList ["0.14.0" ] = VersionBundle {
89- OCM : "v0.14.0" ,
90- AppAddon : "v0.14.0" ,
91- PolicyAddon : "v0.14.0" ,
92- MulticlusterControlplane : "v0.5.0" ,
93- }
94-
9588 versionBundleList ["0.15.0" ] = VersionBundle {
9689 OCM : "v0.15.0" ,
9790 AppAddon : "v0.15.0" ,
@@ -113,8 +106,8 @@ func getVersionBundle(version string) (VersionBundle, error) {
113106 MulticlusterControlplane : "v0.7.0" ,
114107 }
115108
116- versionBundleList ["0.16.1 " ] = VersionBundle {
117- OCM : "v0.16.1 " ,
109+ versionBundleList ["1.0.0 " ] = VersionBundle {
110+ OCM : "v1.0.0 " ,
118111 AppAddon : "v0.16.0" ,
119112 PolicyAddon : "v0.16.0" ,
120113 MulticlusterControlplane : "v0.7.0" ,
Original file line number Diff line number Diff line change @@ -22,10 +22,13 @@ func TestGetVersionBundle(t *testing.T) {
2222 wantErr bool
2323 }{
2424 {
25- name : "default" ,
26- version : "default" ,
27- versionBundleFile : "" ,
28- expectedVersionBundle : func () VersionBundle { return expectedVersionBundle },
25+ name : "default" ,
26+ version : "default" ,
27+ versionBundleFile : "" ,
28+ expectedVersionBundle : func () VersionBundle {
29+ versionBundle , _ := getVersionBundle ("default" )
30+ return versionBundle
31+ },
2932 },
3033 {
3134 name : "specific version" ,
You can’t perform that action at this time.
0 commit comments