From 2ebd09c34d0cd26f4c78c0948f36b521df26b164 Mon Sep 17 00:00:00 2001 From: Dan Bason Date: Wed, 13 Sep 2023 14:02:52 +1200 Subject: [PATCH] Update versions for release --- 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 f0ea826703..8f4c562cb0 100644 --- a/Tiltfile +++ b/Tiltfile @@ -4,7 +4,7 @@ load('ext://namespace', 'namespace_create') set_team('52cc75cc-c4ed-462f-8ea7-a543d398a381') -version = '0.11.1' +version = '0.11.2-rc1' 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 b844dd46a2..3cdc7a3e5a 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.11.1" + plugin-version = "0.11.2-rc1" [images.opensearch.dashboards] repo = "docker.io/rancher/opensearch-dashboards" diff --git a/dagger/config/setup.go b/dagger/config/setup.go index 6955eaf56a..7eee5ca04e 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.11.1", + PluginVersion: "0.11.2-rc1", }, }, }, diff --git a/packages/opni-agent/opni-agent/charts/Chart.yaml b/packages/opni-agent/opni-agent/charts/Chart.yaml index 5bfc8e98cd..e7ea9ad601 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.11.1 +appVersion: 0.11.2-rc1 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.11.1 +version: 0.11.2-rc1 diff --git a/packages/opni-agent/opni-agent/package.yaml b/packages/opni-agent/opni-agent/package.yaml index be6eae6521..b9da96c7eb 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.11.1 +version: 0.11.2-rc1 workingDir: charts diff --git a/packages/opni/opni/charts/Chart.yaml b/packages/opni/opni/charts/Chart.yaml index 7770464f81..ee09a7da34 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.11.1 +appVersion: 0.11.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.11.1 +version: 0.11.2-rc1 diff --git a/packages/opni/opni/package.yaml b/packages/opni/opni/package.yaml index 9d1341b653..e08b3c240a 100644 --- a/packages/opni/opni/package.yaml +++ b/packages/opni/opni/package.yaml @@ -1,5 +1,5 @@ url: local -version: 0.11.1 +version: 0.11.2-rc1 workingDir: charts additionalCharts: - workingDir: charts-crd diff --git a/pkg/resources/opniopensearch/resources.go b/pkg/resources/opniopensearch/resources.go index 84f78c337a..b6e22a9d56 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.11.1" + version = "0.11.2-rc1" } 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 e54fb9171d..a1e6d186e2 100644 --- a/plugins/aiops/pkg/gateway/plugin.go +++ b/plugins/aiops/pkg/gateway/plugin.go @@ -90,7 +90,7 @@ func NewPlugin(ctx context.Context, opts ...PluginOption) *AIOpsPlugin { Name: "opni", Namespace: os.Getenv("POD_NAMESPACE"), }, - version: "v0.11.1", + version: "v0.11.2-rc1", } options.apply(opts...) diff --git a/plugins/logging/pkg/gateway/admin_v2.go b/plugins/logging/pkg/gateway/admin_v2.go index f53efcec94..6f11662470 100644 --- a/plugins/logging/pkg/gateway/admin_v2.go +++ b/plugins/logging/pkg/gateway/admin_v2.go @@ -25,7 +25,7 @@ import ( corev1 "k8s.io/api/core/v1" ) -const defaultOpniVersion = "0.11.1" +const defaultOpniVersion = "0.11.2-rc1" 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 f3a46da862..c01302c20e 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 @@ -62,7 +62,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("integration"), func() { BeforeEach(func() { namespace = "test-logging-v2" - version = "0.11.1" + version = "0.11.2-rc1" opensearchVersion = "2.8.0" security = &opsterv1.Security{ @@ -78,7 +78,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.11.1-2.8.0"), + Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:v0.11.2-rc1-2.8.0"), }, Replicas: 1, Enable: true, @@ -1150,7 +1150,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.11.1")) + Expect(object.Spec.Version).To(Equal("0.11.2-rc1")) Expect(len(object.Spec.NodePools)).To(Equal(2)) }) When("upgrade is available", func() { @@ -1161,7 +1161,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.11.1") + object.Status.Version = lo.ToPtr("0.11.2-rc1") 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 1731d5c506..7ac850b700 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.11.1" + version = "v0.11.2-rc1" }) 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.11.1")) + Expect(cluster.Spec.Version).To(Equal("v0.11.2-rc1")) }) }) When("new version is older", func() {