From f5d7b7117091124aa9f11e1a34f28402d6b64f89 Mon Sep 17 00:00:00 2001 From: Alexandre Lamarre Date: Fri, 3 Nov 2023 16:03:25 -0400 Subject: [PATCH] release 0.12.0 --- Tiltfile | 2 +- dagger/ci/defaults.toml | 2 +- dagger/config/setup.go | 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/plugin.go | 2 +- plugins/logging/pkg/gateway/admin_v2.go | 2 +- .../kubernetes_manager/kubernetes_manager_test.go | 8 ++++---- test/plugins/aiops/admin_test.go | 4 ++-- 12 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Tiltfile b/Tiltfile index 6096ff17a3..b55d39fa75 100644 --- a/Tiltfile +++ b/Tiltfile @@ -4,7 +4,7 @@ load('ext://namespace', 'namespace_create') set_team('52cc75cc-c4ed-462f-8ea7-a543d398a381') -version = '0.12.0-rc1' +version = '0.12.0' config.define_string_list('allowedContexts') config.define_string_list('opniChartValues') config.define_string('defaultRegistry') diff --git a/dagger/ci/defaults.toml b/dagger/ci/defaults.toml index 3eb1c7fac3..18abe492b9 100644 --- a/dagger/ci/defaults.toml +++ b/dagger/ci/defaults.toml @@ -26,7 +26,7 @@ test = true [images.opensearch.build] dashboards-version = "2.8.0" opensearch-version = "2.8.0" - plugin-version = "0.12.0-rc2" + plugin-version = "0.12.0" [images.opensearch.dashboards] repo = "docker.io/rancher/opensearch-dashboards" diff --git a/dagger/config/setup.go b/dagger/config/setup.go index 3ce979d7e4..35dd739cbe 100644 --- a/dagger/config/setup.go +++ b/dagger/config/setup.go @@ -61,7 +61,7 @@ func RunSetup() { Build: OpensearchBuildConfig{ DashboardsVersion: "2.8.0", OpensearchVersion: "2.8.0", - PluginVersion: "0.12.0-rc2", + PluginVersion: "0.12.0", }, }, }, diff --git a/packages/opni-agent/opni-agent/charts/Chart.yaml b/packages/opni-agent/opni-agent/charts/Chart.yaml index 328a096677..bdfa6d50a5 100644 --- a/packages/opni-agent/opni-agent/charts/Chart.yaml +++ b/packages/opni-agent/opni-agent/charts/Chart.yaml @@ -4,7 +4,7 @@ annotations: catalog.rancher.io/namespace: opni-system catalog.rancher.io/release-name: opni-agent apiVersion: v2 -appVersion: 0.12.0-rc2 +appVersion: 0.12.0 dependencies: - condition: kube-prometheus-stack.enabled name: kube-prometheus-stack @@ -12,4 +12,4 @@ dependencies: description: Opni Agent name: opni-agent type: application -version: 0.12.0-rc2 +version: 0.12.0 diff --git a/packages/opni-agent/opni-agent/package.yaml b/packages/opni-agent/opni-agent/package.yaml index 5e777c9455..b64c3ccfa9 100644 --- a/packages/opni-agent/opni-agent/package.yaml +++ b/packages/opni-agent/opni-agent/package.yaml @@ -1,3 +1,3 @@ url: local -version: 0.12.0-rc2 +version: 0.12.0 workingDir: charts diff --git a/packages/opni/opni/charts/Chart.yaml b/packages/opni/opni/charts/Chart.yaml index d563d006e9..21c8b08ecf 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.12.0-rc2 +appVersion: 0.12.0 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.12.0-rc2 +version: 0.12.0 diff --git a/packages/opni/opni/package.yaml b/packages/opni/opni/package.yaml index 0985d1d470..8d85dd5f9b 100644 --- a/packages/opni/opni/package.yaml +++ b/packages/opni/opni/package.yaml @@ -1,5 +1,5 @@ url: local -version: 0.12.0-rc2 +version: 0.12.0 workingDir: charts additionalCharts: - workingDir: charts-crd diff --git a/pkg/resources/opniopensearch/resources.go b/pkg/resources/opniopensearch/resources.go index bdfe5a2e87..7d2939caf6 100644 --- a/pkg/resources/opniopensearch/resources.go +++ b/pkg/resources/opniopensearch/resources.go @@ -47,7 +47,7 @@ func (r *Reconciler) buildOpensearchCluster( // Set default image version version := r.instance.Spec.Version if version == "unversioned" { - version = "0.12.0-rc2" + version = "0.12.0" } image := calculateImage(r.instance.Spec.ImageRepo, version, r.instance.Spec.OpensearchVersion) diff --git a/plugins/aiops/pkg/gateway/plugin.go b/plugins/aiops/pkg/gateway/plugin.go index 083be7731f..3f9adb9b51 100644 --- a/plugins/aiops/pkg/gateway/plugin.go +++ b/plugins/aiops/pkg/gateway/plugin.go @@ -91,7 +91,7 @@ func NewPlugin(ctx context.Context, opts ...PluginOption) *AIOpsPlugin { Name: "opni", Namespace: os.Getenv("POD_NAMESPACE"), }, - version: "v0.12.0-rc2", + version: "v0.12.0", } options.apply(opts...) diff --git a/plugins/logging/pkg/gateway/admin_v2.go b/plugins/logging/pkg/gateway/admin_v2.go index af3e21ef2d..043da49b79 100644 --- a/plugins/logging/pkg/gateway/admin_v2.go +++ b/plugins/logging/pkg/gateway/admin_v2.go @@ -26,7 +26,7 @@ import ( corev1 "k8s.io/api/core/v1" ) -const defaultOpniVersion = "0.12.0-rc2" +const defaultOpniVersion = "0.12.0" type ClusterStatus int diff --git a/plugins/logging/pkg/gateway/drivers/management/kubernetes_manager/kubernetes_manager_test.go b/plugins/logging/pkg/gateway/drivers/management/kubernetes_manager/kubernetes_manager_test.go index e8fc4a6597..b198a7926f 100644 --- a/plugins/logging/pkg/gateway/drivers/management/kubernetes_manager/kubernetes_manager_test.go +++ b/plugins/logging/pkg/gateway/drivers/management/kubernetes_manager/kubernetes_manager_test.go @@ -69,7 +69,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("integration"), func() { BeforeEach(func() { namespace = "test-logging-v2" - version = "0.12.0-rc2" + version = "0.12.0" opensearchVersion = "2.8.0" security = &opsterv1.Security{ @@ -85,7 +85,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("integration"), func() { } dashboards = opsterv1.DashboardsConfig{ ImageSpec: &opsterv1.ImageSpec{ - Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:v0.12.0-rc2-2.8.0"), + Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:v0.12.0-2.8.0"), }, Replicas: 1, Enable: true, @@ -1157,7 +1157,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("integration"), func() { }) }, timeout, interval).Should(BeTrue()) Expect(object.Spec.Security).To(Equal(security)) - Expect(object.Spec.Version).To(Equal("0.12.0-rc2")) + Expect(object.Spec.Version).To(Equal("0.12.0")) Expect(len(object.Spec.NodePools)).To(Equal(2)) }) When("upgrade is available", func() { @@ -1168,7 +1168,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("integration"), func() { }, object) Expect(err).NotTo(HaveOccurred()) object.Status.OpensearchVersion = lo.ToPtr("2.8.0") - object.Status.Version = lo.ToPtr("0.12.0-rc2") + object.Status.Version = lo.ToPtr("0.12.0") Expect(k8sClient.Status().Update(context.Background(), object)).To(Succeed()) }) Specify("check upgrade available should return true", func() { diff --git a/test/plugins/aiops/admin_test.go b/test/plugins/aiops/admin_test.go index 1473581861..f44832a10d 100644 --- a/test/plugins/aiops/admin_test.go +++ b/test/plugins/aiops/admin_test.go @@ -530,7 +530,7 @@ var _ = Describe("AI Admin", Ordered, Label("integration"), func() { }) When("new version is available", func() { BeforeEach(func() { - version = "v0.12.0-rc2" + version = "v0.12.0" }) When("updating the opni cluster", func() { BeforeEach(func() { @@ -569,7 +569,7 @@ var _ = Describe("AI Admin", Ordered, Label("integration"), func() { Name: OpniServicesName, Namespace: namespace, }, cluster)).Should(Succeed()) - Expect(cluster.Spec.Version).To(Equal("v0.12.0-rc2")) + Expect(cluster.Spec.Version).To(Equal("v0.12.0")) }) }) When("new version is older", func() {