refactor: align jammy agent settings to cp+assets approach#646
Conversation
Replace heredoc-based apply.sh scripts with static assets/agent.json files (the same approach already used on ubuntu-noble). This makes the two branches structurally identical so future jammy=>noble merge forwards cannot silently resolve apply.sh conflicts in favour of the wrong version. - Delete prelude_agent.bash (PartitionerType: parted is now inlined as a static field in each assets/agent.json, as the function has unconditionally returned that string since 59a9c29 in 2019) - Replace all 8 bosh_*_agent_settings/apply.sh heredocs with a single cp $assets_dir/agent.json line - Add assets/agent.json for every stage carrying the full config (including UseMonitIptablesFirewall added in 8104abd)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (17)
💤 Files with no reviewable changes (1)
WalkthroughAcross eight IaaS-specific stemcell builder stages (AliCloud, AWS, Azure, CloudStack, Google, OpenStack, SoftLayer, vSphere), each Suggested Reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Replace heredoc-based
apply.shscripts with staticassets/agent.jsonfiles (the same approach already used on ubuntu-noble). This makes the two branches structurally identical so future jammy->noble merge forwards cannot silently resolveapply.shconflicts in favor of the wrong version.As seen here: #644
prelude_agent.bash(PartitionerType: parted is now inlined as a static field in eachassets/agent.json, as the function has unconditionally returned that string since 59a9c29 in 2019)bosh_*_agent_settings/apply.shheredocs with a singlecp $assets_dir/agent.jsonlineassets/agent.jsonfor every stage carrying the full config (includingUseMonitIptablesFirewalladded in 8104abd)