Skip to content

Commit

Permalink
Update versioning and fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
AmartC committed Dec 8, 2022
1 parent 02641d8 commit b598533
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ci.cue
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ dagger.#Plan & {
HELM_OCI_REPO: string | *"ghcr.io/rancher"
DASHBOARDS_VERSION: string | *"2.4.0"
OPENSEARCH_VERSION: string | *"2.4.0"
PLUGIN_VERSION: string | *"0.7.0"
PLUGIN_PUBLISH: string | *"0.7.0"
PLUGIN_VERSION: string | *"0.8.0-rc1"
PLUGIN_PUBLISH: string | *"0.8.0-rc1"
EXPECTED_REF?: string // used by tilt
DOCKER_USERNAME?: string
DOCKER_PASSWORD?: dagger.#Secret
Expand Down
10 changes: 5 additions & 5 deletions plugins/logging/pkg/gateway/admin_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("unit"), func() {

BeforeEach(func() {
namespace = "test-logging-v2"
version = "0.7.0"
version = "0.8.0-rc1"
opensearchVersion = "2.4.0"

security = &opsterv1.Security{
Expand All @@ -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.7.0"),
Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:2.4.0-0.8.0-rc1"),
},
Replicas: 1,
Enable: true,
Expand Down Expand Up @@ -945,7 +945,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("unit"), func() {
})
When("updating the cluster", func() {
BeforeEach(func() {
version = "0.7.0"
version = "0.8.0-rc1"
})
newRequest := createRequest()
newRequest.DataNodes.Persistence = &loggingadmin.DataPersistence{
Expand Down Expand Up @@ -1035,7 +1035,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.7.0")
object.Status.Version = lo.ToPtr("0.8.0-rc1")
Expect(k8sClient.Status().Update(context.Background(), object)).To(Succeed())
})
Specify("check upgrade available should return true", func() {
Expand All @@ -1054,7 +1054,7 @@ var _ = Describe("Opensearch Admin V2", Ordered, Label("unit"), func() {
if err != nil {
return false
}
return object.Spec.Version == "0.7.0"
return object.Spec.Version == "0.8.0-rc1"
}, timeout, interval).Should(BeTrue())
})
})
Expand Down
6 changes: 3 additions & 3 deletions plugins/logging/pkg/gateway/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var _ = Describe("Logging Plugin", Ordered, Label("unit"), func() {

BeforeEach(func() {
namespace = "test-logging"
version = "0.7.0"
version = "0.8.0-rc1"
opensearchVersion = "2.4.0"

request = &loggingadmin.OpensearchCluster{
Expand Down Expand Up @@ -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.7.0"),
Image: lo.ToPtr("docker.io/rancher/opensearch-dashboards:2.4.0-0.8.0-rc1"),
},
Replicas: 1,
Enable: true,
Expand Down Expand Up @@ -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.7.0"
version = "0.8.0-rc1"
})
It("should succeed and update the cluster, excluding the version", func() {
_, err := plugin.CreateOrUpdateOpensearchCluster(context.Background(), request)
Expand Down

0 comments on commit b598533

Please sign in to comment.