From ca1b896c398c3944a17e724122f7580e3ebb069b Mon Sep 17 00:00:00 2001 From: Amartya Chakraborty Date: Wed, 5 Apr 2023 20:38:17 -0700 Subject: [PATCH] Update files to use latest version for 0.9.1-rc3 --- 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/aiops/pkg/gateway/plugin.go | 2 +- 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 ++++++------ 13 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Tiltfile b/Tiltfile index 031ebef1a3..0d52afbc2b 100644 --- a/Tiltfile +++ b/Tiltfile @@ -4,7 +4,7 @@ load('ext://namespace', 'namespace_create') set_team('52cc75cc-c4ed-462f-8ea7-a543d398a381') -version = '0.9.1-rc2' +version = '0.9.1-rc3' config.define_string_list('allowedContexts') config.define_string_list('opniChartValues') config.define_string('defaultRegistry') diff --git a/ci.cue b/ci.cue index 5de59c83d0..b689ea0587 100644 --- a/ci.cue +++ b/ci.cue @@ -19,7 +19,7 @@ import ( "github.com/rancher/opni/images" ) -opniVersion: "0.9.1-rc2" +opniVersion: "0.9.1-rc3" dagger.#Plan & { client: { diff --git a/packages/opni-agent/opni-agent/charts/Chart.yaml b/packages/opni-agent/opni-agent/charts/Chart.yaml index 38f8ef059c..06648d70a0 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.9.1-rc2 +appVersion: 0.9.1-rc3 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.9.1-rc2 +version: 0.9.1-rc3 diff --git a/packages/opni-agent/opni-agent/package.yaml b/packages/opni-agent/opni-agent/package.yaml index b39ac4513a..b15adb9d79 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.9.1-rc2 +version: 0.9.1-rc3 workingDir: charts additionalCharts: - workingDir: charts-crd diff --git a/packages/opni/opni/charts/Chart.yaml b/packages/opni/opni/charts/Chart.yaml index 3e127a1e9b..03edcafd53 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.9.1-rc2 +appVersion: 0.9.1-rc3 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.9.1-rc2 +version: 0.9.1-rc3 diff --git a/packages/opni/opni/package.yaml b/packages/opni/opni/package.yaml index 842e7a2e72..c2886bf336 100644 --- a/packages/opni/opni/package.yaml +++ b/packages/opni/opni/package.yaml @@ -1,6 +1,6 @@ url: local -version: 0.9.1-rc2 +version: 0.9.1-rc3 workingDir: charts additionalCharts: - workingDir: charts-crd diff --git a/pkg/resources/opniopensearch/resources.go b/pkg/resources/opniopensearch/resources.go index f5b85cb01d..e8d9f1e7b2 100644 --- a/pkg/resources/opniopensearch/resources.go +++ b/pkg/resources/opniopensearch/resources.go @@ -44,7 +44,7 @@ func (r *Reconciler) buildOpensearchCluster( // Set default image version version := r.instance.Spec.Version if version == "unversioned" { - version = "0.9.1-rc2" + version = "0.9.1-rc3" } image := fmt.Sprintf( diff --git a/plugins/aiops/pkg/gateway/admin_test.go b/plugins/aiops/pkg/gateway/admin_test.go index eba8ef2cb9..d8738773bb 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.9.1-rc2" + version = "v0.9.1-rc3" }) 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.9.1-rc2")) + Expect(cluster.Spec.Version).To(Equal("v0.9.1-rc3")) }) }) When("new version is older", func() { diff --git a/plugins/aiops/pkg/gateway/plugin.go b/plugins/aiops/pkg/gateway/plugin.go index 3ce6ebf467..6ca64fa9bd 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.9.1-rc2", + version: "v0.9.1-rc3", } options.apply(opts...) diff --git a/plugins/logging/pkg/gateway/admin.go b/plugins/logging/pkg/gateway/admin.go index 9896c580aa..acde23b90a 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.9.1-rc2" + version := "0.9.1-rc3" 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.9.1-rc2" + version = "0.9.1-rc3" } image := fmt.Sprintf( diff --git a/plugins/logging/pkg/gateway/admin_v2.go b/plugins/logging/pkg/gateway/admin_v2.go index 326629eb35..55d8c423a1 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.9.1-rc2" + version := "0.9.1-rc3" if cluster == nil { osVersion = opensearchVersion } else { @@ -1087,7 +1087,7 @@ func (m *LoggingManagerV2) convertProtobufToDashboards( } if version == "unversioned" { - version = "0.9.1-rc2" + version = "0.9.1-rc3" } if m.versionOverride != "" { diff --git a/plugins/logging/pkg/gateway/admin_v2_test.go b/plugins/logging/pkg/gateway/admin_v2_test.go index 82ecf71b2b..9e8c0e0edd 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.9.1-rc2" + version = "0.9.1-rc3" 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.9.1-rc2"), + Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:2.4.0-0.9.1-rc3"), }, 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.9.1-rc2" + version = "0.9.1-rc3" }) 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.9.1-rc2")) + Expect(object.Spec.Version).To(Equal("0.9.1-rc3")) 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.9.1-rc2") + object.Status.Version = lo.ToPtr("0.9.1-rc3") 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.9.1-rc2" + return object.Spec.Version == "0.9.1-rc3" }, timeout, interval).Should(BeTrue()) }) }) diff --git a/plugins/logging/pkg/gateway/plugin_test.go b/plugins/logging/pkg/gateway/plugin_test.go index ad8f8ede36..87ea4c693d 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.9.1-rc2" + version = "0.9.1-rc3" 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.9.1-rc2"), + Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:2.4.0-0.9.1-rc3"), }, 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.9.1-rc2" + version = "0.9.1-rc3" }) 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.9.1-rc2")) + Expect(object.Spec.Version).To(Equal("0.9.1-rc3")) }) }) 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.9.1-rc2" + version = "0.9.1-rc3" }) Specify("upgrade available should return true", func() { - Expect(version).To(Equal("0.9.1-rc2")) + Expect(version).To(Equal("0.9.1-rc3")) response, err := plugin.UpgradeAvailable(context.Background(), nil) Expect(err).NotTo(HaveOccurred()) Expect(response.UpgradePending).To(BeTrue())