Skip to content

Conversation

@weyfonk
Copy link
Contributor

@weyfonk weyfonk commented Nov 28, 2025

Backport of #4284 to v0.14.

Additional Information

Checklist

- [ ] I have updated the documentation via a pull request in the
fleet-docs repository.

@weyfonk weyfonk requested a review from a team as a code owner November 28, 2025 17:06
@weyfonk weyfonk added this to Fleet Nov 28, 2025
@weyfonk weyfonk added this to the v2.13.1 milestone Nov 28, 2025
@weyfonk weyfonk moved this to 👀 In review in Fleet Nov 28, 2025
* Create options secret before bundle deployment

Based on an idea from rancher#3889 by Alejandro Ruiz, the bundle controller now
creates an options secret, if such a secret is needed, before the bundle
deployment which will end up owning it.
This should prevent some errors about missing secrets.

* Optimise owner reference setting on options secret

Setting an owner reference pointing to a bundle deployment on its
options secret can be done when creating or updating the secret, if the
bundle deployment already exists. This works even if the bundle
deployment is outdated, to be subsequently updated, because its UID is
immutable.
This could save the bundle controller a few separate secret update
requests when repeatedly updating multiple bundle deployments.
---------

Co-authored-by: Alejandro Ruiz <[email protected]>
@weyfonk weyfonk force-pushed the 0.14-create-options-secret-before-bd branch from 999cbfa to 5a69b54 Compare December 1, 2025 08:34
@0xavi0 0xavi0 merged commit ce15dba into rancher:release/v0.14 Dec 1, 2025
22 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Fleet Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants