Skip to content

Conversation

@IvoGoman
Copy link
Contributor

@IvoGoman IvoGoman commented Dec 17, 2025

Description

Templating of the Plugins HelmChart could fail if a required SecretRef was not available.
This change refactors the computation of the pluginOptions for the Flux controller, to handle each optionValue individually. Removing the need to copy & filter unwanted optionValues and to merge the resolved optionValues.
Also it removes a bug, where the generation of the flux HelmRelease values removes secretRefs from the optionValues.

What type of PR is this? (check all applicable)

  • 🍕 Feature
  • 🐛 Bug Fix
  • 📝 Documentation Update
  • 🎨 Style
  • 🧑‍💻 Code Refactor
  • 🔥 Performance Improvements
  • ✅ Test
  • 🤖 Build
  • 🔁 CI
  • 📦 Chore (Release)
  • ⏩ Revert

Related Tickets & Documents

Added tests?

  • 👍 yes
  • 🙅 no, because they aren't needed
  • 🙋 no, because I need help
  • Separate ticket for tests # (issue/pr)

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

  • 📜 README.md
  • 🤝 Documentation pages updated
  • 🙅 no documentation needed
  • (if applicable) generated OpenAPI docs for CRD changes

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

uwe-mayer
uwe-mayer previously approved these changes Dec 18, 2025
Templating of the Plugins HelmChart could fail if a required SecretRef was not available.
This change ensures that secretRefs are not filtered from the optionValues during evaluation of expression & integrated values. Also it ensures they are not removed when calculating the flux helmrelease values
This refactors the resolution of ValueFromRefs and Expressions
Instead of individual processing of optionValues incl filtering and merging of results.
this is now processing each value individually handling CEL expressions and
tracking of integrated values
@IvoGoman IvoGoman force-pushed the fix/plugin-flux-secretRefs branch from 39e1d09 to 198884e Compare December 18, 2025 10:42
@IvoGoman IvoGoman merged commit 5d75225 into main Dec 18, 2025
26 of 28 checks passed
@IvoGoman IvoGoman deleted the fix/plugin-flux-secretRefs branch December 18, 2025 13:20
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.

🐛 [BUG] - Plugin not being reconciled when valueFrom.secret and mirror patches are used

3 participants