Fix storage plugin config not loaded due to ordering in load-vars#465
Conversation
The storage_plugin union into enabled_plugins happened after plugin config files were loaded, so config/plugins/odf.yaml was never read when odf was only set via storage_plugin and not explicitly listed in enabled_plugins. This left odfExternalConfig undefined, causing the ODF deploy task to silently skip StorageCluster creation. Move the storage_plugin union before the plugin config loading block so the storage plugin's config file is always included. Assisted-by: Claude Code <noreply@anthropic.com>
WalkthroughThe playbook's variable-loading sequence is reordered so that ChangesPlugin enablement reordering in variable loading
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Security & Risk AssessmentImpact:
Risk Factors:
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
connected e2e will be fixed in #469 |
Summary
storage_pluginunion intoenabled_pluginsbefore plugin config loading inload-vars.yamlconfig/plugins/odf.yamlwas never loaded whenodfwas set viastorage_pluginbut not explicitly listed inenabled_plugins, leavingodfExternalConfigundefinedenabled_plugins— settingstorage_pluginshould be sufficientRoot Cause
In
load-vars.yaml, the plugin config loading filtered byenabled_plugins, but thestorage_pluginunion happened after that block. Whenodfwas only set viastorage_pluginand not inenabled_plugins, its config file was never read.Test plan
storage_plugin: odfandodfnot inenabled_plugins— verify StorageCluster is createdodfexplicitly inenabled_plugins— verify no regressionstorage_plugin— verify no regression🤖 Generated with Claude Code