Skip to content

fix(controller): route shared Secret events to all Tenants#188

Merged
GatewayJ merged 1 commit into
rustfs:mainfrom
GatewayJ:fix/shared-reference-watch-index
Jul 19, 2026
Merged

fix(controller): route shared Secret events to all Tenants#188
GatewayJ merged 1 commit into
rustfs:mainfrom
GatewayJ:fix/shared-reference-watch-index

Conversation

@GatewayJ

Copy link
Copy Markdown
Member

Type of Change

  • New Feature
  • Bug Fix
  • Documentation
  • Performance Improvement
  • Test/CI
  • Refactor
  • Other:

Related Issues

Follow-up to #187.

Summary of Changes

  • Route Secret watch events to every same-namespace Tenant whose spec references the Secret.
  • Remove legacy rustfs.tenant routing labels from external Secrets at controller startup while preserving labels on Tenant-owned Secrets.
  • Stop adding the Tenant routing label to cert-manager-generated Secrets.
  • Keep the existing ConfigMap watch behavior unchanged and update focused tests, examples, CRDs, and user guides.

Checklist

  • I have read and followed the CONTRIBUTING.md guidelines
  • Passed make pre-commit (fmt-check + clippy + test + console-lint + console-fmt-check)
  • Added/updated necessary tests
  • Documentation updated (if needed)
  • CHANGELOG.md updated under [Unreleased] (N/A: this repository has no CHANGELOG)
  • CI/CD passed (pending)

Impact

  • Breaking change (CRD/API compatibility)
  • Requires doc/config/deployment update
  • Other impact: legacy routing labels are removed from external Secrets when the active controller starts.

Verification

make pre-commit

Additional Notes

The Tenant CRD schema is unchanged. Existing manifests remain valid, and Secrets can now be shared by multiple Tenants without a routing label.


Thank you for your contribution! Please ensure your PR follows the community standards (CODE_OF_CONDUCT.md) and sign the CLA if this is your first contribution.

@GatewayJ
GatewayJ marked this pull request as ready for review July 18, 2026 16:14
@GatewayJ

Copy link
Copy Markdown
Member Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 0898ca17ef

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@GatewayJ
GatewayJ added this pull request to the merge queue Jul 19, 2026
Merged via the queue into rustfs:main with commit eb6ff1f Jul 19, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant