From 7098ca6806f15085cb1bab26e1c0c39b52283253 Mon Sep 17 00:00:00 2001 From: Dan Bason Date: Tue, 14 Feb 2023 13:08:35 +1300 Subject: [PATCH] [Chore] Update versions for release --- Tiltfile | 2 +- ci.cue | 2 +- packages/opni-agent/opni-agent/charts/Chart.yaml | 4 ++-- packages/opni-agent/opni-agent/package.yaml | 2 +- packages/opni/opni/charts/Chart.yaml | 4 ++-- packages/opni/opni/package.yaml | 2 +- pkg/resources/opniopensearch/resources.go | 2 +- plugins/aiops/pkg/gateway/admin_test.go | 4 ++-- plugins/logging/pkg/gateway/admin.go | 4 ++-- plugins/logging/pkg/gateway/admin_v2.go | 4 ++-- plugins/logging/pkg/gateway/admin_v2_test.go | 12 ++++++------ plugins/logging/pkg/gateway/plugin_test.go | 12 ++++++------ 12 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Tiltfile b/Tiltfile index 29d8361d57..e4289a5eac 100644 --- a/Tiltfile +++ b/Tiltfile @@ -4,7 +4,7 @@ load('ext://namespace', 'namespace_create') set_team('52cc75cc-c4ed-462f-8ea7-a543d398a381') -version = '0.8.1' +version = '0.8.2-rc1' config.define_string_list('allowedContexts') config.define_string_list('opniChartValues') config.define_string('defaultRegistry') diff --git a/ci.cue b/ci.cue index defa3be649..e035d82dbe 100644 --- a/ci.cue +++ b/ci.cue @@ -19,7 +19,7 @@ import ( "github.com/rancher/opni/images" ) -opniVersion: "0.8.1" +opniVersion: "0.8.2-rc1" dagger.#Plan & { client: { diff --git a/packages/opni-agent/opni-agent/charts/Chart.yaml b/packages/opni-agent/opni-agent/charts/Chart.yaml index e2e9d9458a..36c993798c 100644 --- a/packages/opni-agent/opni-agent/charts/Chart.yaml +++ b/packages/opni-agent/opni-agent/charts/Chart.yaml @@ -5,7 +5,7 @@ annotations: catalog.rancher.io/namespace: opni-system catalog.rancher.io/release-name: opni-agent apiVersion: v2 -appVersion: 0.8.1 +appVersion: 0.8.2-rc1 dependencies: - condition: kube-prometheus-stack.enabled name: kube-prometheus-stack @@ -13,4 +13,4 @@ dependencies: description: Opni Agent name: opni-agent type: application -version: 0.8.1 +version: 0.8.2-rc1 diff --git a/packages/opni-agent/opni-agent/package.yaml b/packages/opni-agent/opni-agent/package.yaml index b7d1ee036e..86fd8b2dbf 100644 --- a/packages/opni-agent/opni-agent/package.yaml +++ b/packages/opni-agent/opni-agent/package.yaml @@ -1,6 +1,6 @@ url: local -version: 0.8.1 +version: 0.8.2-rc1 workingDir: charts additionalCharts: - workingDir: charts-crd diff --git a/packages/opni/opni/charts/Chart.yaml b/packages/opni/opni/charts/Chart.yaml index 9b77414efc..1a5c6168b8 100644 --- a/packages/opni/opni/charts/Chart.yaml +++ b/packages/opni/opni/charts/Chart.yaml @@ -5,7 +5,7 @@ annotations: catalog.rancher.io/namespace: opni-cluster-system catalog.rancher.io/release-name: opni apiVersion: v2 -appVersion: 0.8.1 +appVersion: 0.8.2-rc1 dependencies: - condition: opni-agent.kube-prometheus-stack.enabled name: kube-prometheus-stack @@ -31,4 +31,4 @@ maintainers: name: Dan Bason name: opni type: application -version: 0.8.1 +version: 0.8.2-rc1 diff --git a/packages/opni/opni/package.yaml b/packages/opni/opni/package.yaml index b477b72cab..f5b5a5290e 100644 --- a/packages/opni/opni/package.yaml +++ b/packages/opni/opni/package.yaml @@ -1,6 +1,6 @@ url: local -version: 0.8.1 +version: 0.8.2-rc1 workingDir: charts additionalCharts: - workingDir: charts-crd diff --git a/pkg/resources/opniopensearch/resources.go b/pkg/resources/opniopensearch/resources.go index 889190a096..7161c6ceca 100644 --- a/pkg/resources/opniopensearch/resources.go +++ b/pkg/resources/opniopensearch/resources.go @@ -39,7 +39,7 @@ func (r *Reconciler) buildOpensearchCluster( // Set default image version version := r.instance.Spec.Version if version == "unversioned" { - version = "0.8.1" + version = "0.8.2-rc1" } image := fmt.Sprintf( diff --git a/plugins/aiops/pkg/gateway/admin_test.go b/plugins/aiops/pkg/gateway/admin_test.go index 28eef7cb37..ed8fb11d0d 100644 --- a/plugins/aiops/pkg/gateway/admin_test.go +++ b/plugins/aiops/pkg/gateway/admin_test.go @@ -533,7 +533,7 @@ var _ = Describe("AI Admin", Ordered, Label("unit"), func() { }) When("new version is available", func() { BeforeEach(func() { - version = "v0.8.1" + version = "v0.8.2-rc1" }) When("updating the opni cluster", func() { BeforeEach(func() { @@ -572,7 +572,7 @@ var _ = Describe("AI Admin", Ordered, Label("unit"), func() { Name: OpniServicesName, Namespace: namespace, }, cluster)).Should(Succeed()) - Expect(cluster.Spec.Version).To(Equal("v0.8.1")) + Expect(cluster.Spec.Version).To(Equal("v0.8.2-rc1")) }) }) When("new version is older", func() { diff --git a/plugins/logging/pkg/gateway/admin.go b/plugins/logging/pkg/gateway/admin.go index 2b47d4e65e..83b3f8346b 100644 --- a/plugins/logging/pkg/gateway/admin.go +++ b/plugins/logging/pkg/gateway/admin.go @@ -411,7 +411,7 @@ func (p *Plugin) convertProtobufToDashboards( cluster *loggingv1beta1.OpniOpensearch, ) opsterv1.DashboardsConfig { var osVersion string - version := "0.8.1" + version := "0.8.2-rc1" if cluster == nil { if versions.Version != "unversioned" { version = strings.TrimPrefix(versions.Version, "v") @@ -437,7 +437,7 @@ func (p *Plugin) convertProtobufToDashboards( } if version == "unversioned" { - version = "0.8.1" + version = "0.8.2-rc1" } image := fmt.Sprintf( diff --git a/plugins/logging/pkg/gateway/admin_v2.go b/plugins/logging/pkg/gateway/admin_v2.go index c0620ad017..b5f464ab4a 100644 --- a/plugins/logging/pkg/gateway/admin_v2.go +++ b/plugins/logging/pkg/gateway/admin_v2.go @@ -1070,7 +1070,7 @@ func (m *LoggingManagerV2) convertProtobufToDashboards( cluster *loggingv1beta1.OpniOpensearch, ) opsterv1.DashboardsConfig { var osVersion string - version := "0.8.1" + version := "0.8.2-rc1" if cluster == nil { osVersion = opensearchVersion } else { @@ -1087,7 +1087,7 @@ func (m *LoggingManagerV2) convertProtobufToDashboards( } if version == "unversioned" { - version = "0.8.1" + version = "0.8.2-rc1" } if m.versionOverride != "" { diff --git a/plugins/logging/pkg/gateway/admin_v2_test.go b/plugins/logging/pkg/gateway/admin_v2_test.go index c5f23a56c9..d5c9a49a9b 100644 --- a/plugins/logging/pkg/gateway/admin_v2_test.go +++ b/plugins/logging/pkg/gateway/admin_v2_test.go @@ -54,7 +54,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("unit"), func() { BeforeEach(func() { namespace = "test-logging-v2" - version = "0.8.1" + version = "0.8.2-rc1" opensearchVersion = "2.4.0" security = &opsterv1.Security{ @@ -70,7 +70,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("unit"), func() { } dashboards = opsterv1.DashboardsConfig{ ImageSpec: &opsterv1.ImageSpec{ - Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:2.4.0-0.8.1"), + Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:2.4.0-0.8.2-rc1"), }, Replicas: 1, Enable: true, @@ -1054,7 +1054,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("unit"), func() { }) When("updating the cluster", func() { BeforeEach(func() { - version = "0.8.1" + version = "0.8.2-rc1" }) newRequest := createRequest() newRequest.DataNodes.Persistence = &loggingadmin.DataPersistence{ @@ -1143,7 +1143,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("unit"), func() { }) }, timeout, interval).Should(BeTrue()) Expect(object.Spec.Security).To(Equal(security)) - Expect(object.Spec.Version).To(Equal("0.8.1")) + Expect(object.Spec.Version).To(Equal("0.8.2-rc1")) Expect(len(object.Spec.NodePools)).To(Equal(2)) }) When("upgrade is available", func() { @@ -1154,7 +1154,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("unit"), func() { }, object) Expect(err).NotTo(HaveOccurred()) object.Status.OpensearchVersion = lo.ToPtr("2.4.0") - object.Status.Version = lo.ToPtr("0.8.1") + object.Status.Version = lo.ToPtr("0.8.2-rc1") Expect(k8sClient.Status().Update(context.Background(), object)).To(Succeed()) }) Specify("check upgrade available should return true", func() { @@ -1173,7 +1173,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("unit"), func() { if err != nil { return false } - return object.Spec.Version == "0.8.1" + return object.Spec.Version == "0.8.2-rc1" }, timeout, interval).Should(BeTrue()) }) }) diff --git a/plugins/logging/pkg/gateway/plugin_test.go b/plugins/logging/pkg/gateway/plugin_test.go index 7251caf019..7bd0926047 100644 --- a/plugins/logging/pkg/gateway/plugin_test.go +++ b/plugins/logging/pkg/gateway/plugin_test.go @@ -43,7 +43,7 @@ var _ = Describe("Logging Plugin", Ordered, Label("unit"), func() { BeforeEach(func() { namespace = "test-logging" - version = "0.8.1" + version = "0.8.2-rc1" opensearchVersion = "2.4.0" request = &loggingadmin.OpensearchCluster{ @@ -127,7 +127,7 @@ var _ = Describe("Logging Plugin", Ordered, Label("unit"), func() { } dashboards = opsterv1.DashboardsConfig{ ImageSpec: &opsterv1.ImageSpec{ - Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:2.4.0-0.8.1"), + Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:2.4.0-0.8.2-rc1"), }, Replicas: 1, Enable: true, @@ -234,7 +234,7 @@ var _ = Describe("Logging Plugin", Ordered, Label("unit"), func() { nodePool.Jvm = fmt.Sprintf("-Xmx%d -Xms%d", 2*giBytes, 2*giBytes) nodePool.Resources.Limits[corev1.ResourceMemory] = resource.MustParse("4Gi") nodePool.Resources.Requests[corev1.ResourceMemory] = resource.MustParse("4Gi") - version = "0.8.1" + version = "0.8.2-rc1" }) It("should succeed and update the cluster, excluding the version", func() { _, err := plugin.CreateOrUpdateOpensearchCluster(context.Background(), request) @@ -250,7 +250,7 @@ var _ = Describe("Logging Plugin", Ordered, Label("unit"), func() { return reflect.DeepEqual(object.Spec.NodePools[0], nodePool) }, timeout, interval).Should(BeTrue()) Expect(object.Spec.Security).To(Equal(security)) - Expect(object.Spec.Version).To(Equal("0.8.1")) + Expect(object.Spec.Version).To(Equal("0.8.2-rc1")) }) }) Specify("check upgrade available should return false", func() { @@ -260,10 +260,10 @@ var _ = Describe("Logging Plugin", Ordered, Label("unit"), func() { }) XWhen("new version is available", func() { BeforeEach(func() { - version = "0.8.1" + version = "0.8.2-rc1" }) Specify("upgrade available should return true", func() { - Expect(version).To(Equal("0.8.1")) + Expect(version).To(Equal("0.8.2-rc1")) response, err := plugin.UpgradeAvailable(context.Background(), nil) Expect(err).NotTo(HaveOccurred()) Expect(response.UpgradePending).To(BeTrue())