Skip to content

Commit

Permalink
CLOUDP-276565 MongoDB 8.0.0 GA support (#1624)
Browse files Browse the repository at this point in the history
* CLOUDP-276565 MongoDB 8.0.0 GA support

* Fixes and release notes

* Fixed Agent distro
  • Loading branch information
slaskawi authored Oct 4, 2024
1 parent a6075d4 commit c83d4d4
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .action_templates/jobs/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ tests:
distro: ubi
- test-name: replica_set_enterprise_upgrade_6_7
distro: ubi
- test-name: replica_set_enterprise_upgrade_7_8
distro: ubi
- test-name: replica_set_recovery
distro: ubi
- test-name: replica_set_mongod_readiness
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e-fork.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
distro: ubi
- test-name: replica_set_enterprise_upgrade_6_7
distro: ubi
- test-name: replica_set_enterprise_upgrade_7_8
distro: ubi
- test-name: replica_set_recovery
distro: ubi
- test-name: replica_set_mongod_readiness
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ jobs:
distro: ubi
- test-name: replica_set_enterprise_upgrade_6_7
distro: ubi
- test-name: replica_set_enterprise_upgrade_7_8
distro: ubi
- test-name: replica_set_recovery
distro: ubi
- test-name: replica_set_mongod_readiness
Expand Down
20 changes: 3 additions & 17 deletions docs/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
# MongoDB Kubernetes Operator 0.11.0
# MongoDB Kubernetes Operator 0.12.0

## Migrating agent images to ubi
All agent images were updated to use the ubi repo

## Documentation improvements
Improvements were made to the documentation of using the community operator as well as the one for local development.

## Logging changes
- Added `AuditLogRotate` field to `AgentConfiguration`
- Fixed JSON key to be lower case: `logRotate`

## Bug Fixes
- Users removed from the resource are now also deleted from the database and their connection string secrets are cleaned up
- Scram secret name collisions will now be caught when validating specs

## Important Bumps
- Bumped go to 1.22
## Added support for MongoDB 8.0.0 GA
MongoDB 8.0.0 GA is now officially supported by the Operator
4 changes: 2 additions & 2 deletions pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
TOOLS_DISTRO_KEY = "tools_distro"

AGENT_DISTROS_PER_ARCH = {
"amd64": {AGENT_DISTRO_KEY: "rhel7_x86_64", TOOLS_DISTRO_KEY: "rhel70-x86_64"},
"arm64": {AGENT_DISTRO_KEY: "amzn2_aarch64", TOOLS_DISTRO_KEY: "rhel82-aarch64"},
"amd64": {AGENT_DISTRO_KEY: "rhel8_x86_64", TOOLS_DISTRO_KEY: "rhel88-x86_64"},
"arm64": {AGENT_DISTRO_KEY: "amzn2_aarch64", TOOLS_DISTRO_KEY: "rhel88-aarch64"},
}


Expand Down
4 changes: 2 additions & 2 deletions release.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"operator": "0.11.0",
"version-upgrade-hook": "1.0.9",
"readiness-probe": "1.0.20",
"agent": "107.0.7.8596-1",
"agent-tools-version": "100.9.4"
"agent": "108.0.0.8694-1",
"agent-tools-version": "100.10.0"
}
2 changes: 1 addition & 1 deletion test/e2e/e2eutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func NewTestMongoDB(ctx *TestContext, name string, namespace string) (mdbv1.Mong
Spec: mdbv1.MongoDBCommunitySpec{
Members: 3,
Type: "ReplicaSet",
Version: "7.0.2",
Version: "8.0.0",
Arbiters: 0,
Security: mdbv1.Security{
Authentication: mdbv1.Authentication{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package replica_set

import (
"context"
"fmt"
"os"
"testing"

e2eutil "github.com/mongodb/mongodb-kubernetes-operator/test/e2e"
"github.com/mongodb/mongodb-kubernetes-operator/test/e2e/replica_set_enterprise_upgrade"
)

var (
versionsForUpgrades = []string{"7.0.12", "8.0.0"}
)

func TestMain(m *testing.M) {
code, err := e2eutil.RunTest(m)
if err != nil {
fmt.Println(err)
}
os.Exit(code)
}

func TestReplicaSet(t *testing.T) {
ctx := context.Background()
replica_set_enterprise_upgrade.DeployEnterpriseAndUpgradeTest(ctx, t, versionsForUpgrades)
}

0 comments on commit c83d4d4

Please sign in to comment.