Aleksei Sviridkin 06c2be9745 fix(platform): stop handing tenants a root S3 the root tenant does not run (#5097)
## What this PR does

`cozystack-basics` writes `seaweedfs: tenant-root` into the
`cozystack-values` Secret of the root tenant unconditionally, so every
tenant without its own SeaweedFS inherits `tenant-root` as its S3, even
when `Tenant/root` has `spec.seaweedfs: false`. On a v1.6.5 cluster
whose root tenant runs no SeaweedFS, a tenant created a Bucket, its
BucketClaim asked for bucket class `tenant-root`, and the objectstorage
controller logged `bucketclasses.objectstorage.k8s.io "tenant-root" not
found` 8796 times over three days while the app stayed Ready. #5096
makes that state visible in WorkloadsReady, this PR removes its cause.

The new platform value `seaweedfs.rootEnabled` reaches cozystack-basics
as `_cluster.seaweedfs-enabled`, the same way `monitoring.rootEnabled`
reaches it as `_cluster.monitoring-enabled` for #3181, and
`_namespace.seaweedfs: tenant-root` is written only when it is true. The
default `true` keeps today's behaviour. The slim variants, which do not
install SeaweedFS for the root tenant, set it to `false` next to
`monitoring.rootEnabled`. Without S3 up the tenant chain the bucket and
harbor charts now fail to render with a message that names the problem,
instead of creating a claim for a class that never appears. A lookup of
the live Tenant is not used, for the reason
`monitoring-external-services.yaml` gives for the monitoring gate.

An existing Bucket or Harbor in a tenant without S3 up its chain fails
its next upgrade with that message once the flag is false. Its
BucketClaim was never provisioned, so nothing that worked stops working.

The platform tests cover propagation of seaweedfs.rootEnabled. Rendering
the root Secret with a missing flag keeps S3 enabled for older
installations. For a present key, only true or the string "true" enables
it. The bucket and harbor tests also cover the error when the tenant has
no S3. All 546 Helm tests across the four charts passed locally.

### Screenshots

Not a UI change.

### Downstream repositories

`packages/core/platform/values.yaml` gains `seaweedfs.rootEnabled`,
which the trigger map routes to `platform-package.md` on the website.
The variants page lists what the slim variants need for SeaweedFS, so it
gets the same note as monitoring. No app schema, values default or other
contract changes.

- [ ] No downstream repository is affected by this change
- [x] [cozystack/website](https://github.com/cozystack/website) -
follow-up: https://github.com/cozystack/website/pull/774
- [ ]
[cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack)
- follow-up:
- [ ]
[cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack)
- follow-up:
- [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up:
- [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up:
- [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) -
follow-up:
- [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) -
follow-up:
- [ ]
[cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server)
- follow-up:
- [ ]
[cozystack/external-apps-example](https://github.com/cozystack/external-apps-example)
- follow-up:
- [ ] [cozystack/examples](https://github.com/cozystack/examples) -
follow-up:
- [ ] [cozystack/community](https://github.com/cozystack/community) -
follow-up:

### Release note

```release-note
fix(platform): new platform value seaweedfs.rootEnabled. Set it to false when the root tenant runs no SeaweedFS, so tenants stop inheriting tenant-root as their S3 and a Bucket or Harbor without S3 up its tenant chain fails to render with a clear message instead of waiting on a bucket class that does not exist. The slim variants set it to false, so a slim cluster that runs SeaweedFS on Tenant/root must set seaweedfs.rootEnabled: true before the upgrade, or its Buckets and Harbors stop rendering.
```


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

## Summary by CodeRabbit

* **New Features**
* Added a setting to control whether the root tenant provides SeaweedFS
for S3. It is enabled by default and disabled in slim ISP
configurations.
* Tenant configuration now includes SeaweedFS when root provision is
enabled or the setting is unspecified, and omits it when disabled.
* **Bug Fixes**
* Bucket and Harbor deployments now report a clear error when neither
the tenant nor an ancestor provides SeaweedFS, rather than rendering an
unusable S3 bucket claim.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-12-02 15:46:00 +03:00
2026-11-04 00:56:56 +01: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 53.3%
Shell 33.1%
TypeScript 6.6%
Go Template 4.7%
Makefile 1.2%
Other 1%