Aleksei Sviridkin b86fd7aa5b fix(platform): make mongodb-application depend on its operator (#3845)
The mongodb chart renders `kind: PerconaServerMongoDB` from
`psmdb.percona.com/v1`, but `cozystack.mongodb-application` depended
only on `cozystack.networking` and `cozystack.cozystack-engine`. So
`mongodb-rd` registers the ApplicationDefinition as soon as the engine
is up, a tenant can create a MongoDB before the operator exists, and its
HelmRelease then fails with `no matches for kind
"PerconaServerMongoDB"`.

Every other operator-backed application here already carries the edge.
This is the same defect #3817 fixes for etcd.

It also closes a test-selection gap. Without the edge
`cozystack.mongodb-operator` reaches no runnable suite, so every change
to the operator escalates to a run of all suites instead of selecting
`mongodb`. See `src_to_suites()` in `hack/select-e2e.sh`.

## Checks


`packages/core/platform/tests/sources_mongodb_application_dependson_test.yaml`
pins the edge alongside the baseline ones, mirroring the etcd guard.
Mutation checked: removing the edge turns it red, restoring it turns it
green.

`hack/select-install.sh --validate` reports the graph still has no
cycle, and all platform helm unit tests pass.

## The exposure this adds

An administrator who lists `cozystack.mongodb-operator` in
`bundles.disabledPackages` while keeping the application now leaves it
`DependenciesNotReady`. That is the same exposure postgres, mariadb,
kafka, redis and etcd already carry, with
`Package.spec.ignoreDependencies` as the escape hatch.

### Release note

```release-note
fix(platform): the mongodb application now waits for the mongodb operator, so a tenant can no longer create a MongoDB before the CRD that serves it exists
```


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Bug Fixes**
* Ensured the MongoDB operator is available before MongoDB application
components are registered or deployed.
* Preserved required dependencies on networking and the platform engine.

* **Tests**
* Added coverage verifying the MongoDB application dependency
configuration.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Closes #3850
2026-09-30 05:17:06 +03:00
2025-10-08 09:43:34 +05:00
2024-02-08 12:04:32 +01:00

Cozystack Cozystack

GitHub Release Apache-2.0 License Commit activity OpenSSF Best Practices OpenSSF Scorecard CLOMonitor Support

Cozystack

Cozystack is a free and open-source platform and framework for building clouds.

Cozystack is a CNCF Sandbox project that was originally built and sponsored by Ænix.

With Cozystack, you can transform a bunch of servers into an intelligent system with a simple REST API for spawning Kubernetes clusters, Database-as-a-Service, virtual machines, load balancers, HTTP caching services, and other services with ease.

Use Cozystack to build your own cloud or provide a cost-effective development environment.

Cozystack user interface

Use-Cases

Documentation

The documentation is located on the cozystack.io website.

Read the Getting Started section for a quick start.

If you encounter any difficulties, start with the troubleshooting guide and work your way through the process that we've outlined.

Versioning

Versioning adheres to the Semantic Versioning principles.
A full list of the available releases is available in the GitHub repository's Release section.

Contributions

Contributions are highly appreciated and very welcomed!

In case of bugs, please check if the issue has already been opened by checking the GitHub Issues section. If it isn't, you can open a new one. A detailed report will help us replicate it, assess it, and work on a fix.

You are welcome to take on the fix yourself. Commits are used to generate the changelog, and their author will be referenced in it.

If you have a concrete feature request, open an issue. For a cross-cutting or architectural change, open a design proposal in the community repo. For questions or early ideas, use GitHub Discussions. See CONTRIBUTING.md for the full routing.

Community

You are welcome to join us in #cozystack, on either CNCF Slack (get an invite) or Kubernetes Slack (get an invite), in our Telegram group, and at our community meetings. Add them to your Google Calendar or iCal for convenience.

Project documents

Document What it covers
Governance How decisions are made and who makes them
Contributor Ladder How to grow from contributor to maintainer
Maintainers Who maintains the project
Code of Conduct What we expect of each other
Security Policy Reporting a vulnerability, and which releases get fixes
Adopters Who runs Cozystack in production
Roadmap Where the project is going

License

Cozystack is licensed under Apache 2.0.
The code is provided as-is with no warranties.

Commercial Support

A list of companies providing commercial support for this project can be found on official site.

Languages
Go 47.2%
Shell 37.6%
TypeScript 7%
Go Template 5.4%
Makefile 1.4%
Other 1.2%