Repository navigation
feat(mongodb): support MongoDB 9.0 and make 9.0.2 default - #414
Merged
Merged
Conversation
MongoDB 9.0 is the current major; the operator rejected it. The exporter default also lagged (0.51.0). - Supported list 8.0/8.2/8.3/9.0. The upgrade webhook admits one major step, 8.3 -> 9.0: 9.0 binaries start only with FCV 8.3 (lastContinuous) or 8.0 (lastLTS), and the operator commits FCV to the target minor after each upgrade, so a cluster reaches 9.0 from 8.3 with FCV 8.3. 8.0/8.2 -> 9.0 stay rejected, matching the adjacent-minor rule. FCV 9.0 is committed after validation. - Defaults: mongo:9.0.2, percona/mongodb_exporter:0.53.0 (code, CRD default, chart values, samples, examples, docs). - Artifact Hub: mongo and exporter images are whitelisted (upstream, not built here); the operator image stays scanned. SECURITY.md documents it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: phil <phil@keiailab.com>
KeiaiLab-PHIL
enabled auto-merge (squash)
October 6, 2026 01:53
KeiaiLab-PHIL
added a commit
that referenced
this pull request
Oct 6, 2026
Security release, also a code release: tag, chart version and appVersion are aligned so release.yml builds and publishes the image. Includes: Go toolchain 1.26.8 and vulnerable module bumps (#411), workflow hardening (#412), Dependabot (#413), MongoDB 9.0 support with 9.0.2 and exporter 0.53.0 as defaults (#414), fuzz test (#422). Bundle regenerated with `make bundle VERSION=1.16.10` (ADR-0038 parity). artifacthub.io/images moves the operator to v1.16.10 and keeps the upstream mongo/exporter images whitelisted; containsSecurityUpdates is true. Signed-off-by: phil <phil@keiailab.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What / why
User instruction 2026-10-06 "mongodb 최신 메이저버전 적용": MongoDB 9.0 becomes supported and the default; the exporter default moves to 0.53.0; upstream images are whitelisted in the Artifact Hub scan.
supportedMongoDBList= 8.0 / 8.2 / 8.3 / 9.0 (v1alpha1 + v1beta1).IsValidUpgradePathused to reject every major change, so 8.3 → 9.0 was blocked. NewcheckMajorStepadmits exactly one cross-major step: last supported minor of N → first supported minor of N+1 (8.3 → 9.0). 8.0/8.2 → 9.0 and 9.0 → 8.x stay rejected.commitFCV/commitShardedFCV→fcvMajorMinor), so a cluster that walked 8.0 → 8.2 → 8.3 sits at FCV 8.3, which 9.0 accepts. The binary rollout stays rollback-safe until validation passes, then FCV "9.0" is committed (same flow as the minor steps).mongo:9.0.2(defaultImage, also used by the backup Job and the backup-verification StatefulSet),percona/mongodb_exporter:0.53.0(kubebuilder default +exporterImage), chart values,crdsExamples, config/samples (+bundle samples, CSV alm-examples base), examples, docs (install / getting-started / i18n / chart README / README supported-version list).artifacthub.io/images:mongo:9.0.2andpercona/mongodb_exporter:0.53.0arewhitelisted: true; the operator image stays scanned.SECURITY.mdgets an "Upstream images" section.make manifests generate+make sync-crds(note:manifestsrunssync-crdsbefore controller-gen, so a secondsync-crdsis needed to get the chart CRDs in step — pre-existing Makefile ordering).Verification
major version change "8.3" → "9.0" is not allowed), then green: 8.3→9.0 ok, 8.3.1→9.0.2 ok, 8.0→9.0 / 8.2→9.0 / 9.0→8.3 / 8.3→10.0 rejected, 9.0.0→9.0.2 patch ok.make testgreen ·golangci-lint --new-from-rev=origin/main0 issues ·helm lintok ·make kube-lintpass ·crane digest mongo:9.0.2/percona/mongodb_exporter:0.53.0exist.Not verifiable without a cluster
mongodump/mongorestoreinmongo:9.0.2) against 8.x servers.monitoring.exporter.imagepick up the new CRD default 0.53.0 → exporter sidecar rolls once.spec.version.versionis required in the CR; chartmongodb.versiononly feeds an unusedDEFAULT_MONGODB_VERSIONenv and NOTES.🤖 Generated with Claude Code