Skip to content

Conversation

@LikiosSedo
Copy link
Contributor

@LikiosSedo LikiosSedo commented Oct 24, 2025

Summary

This KEP introduces roleTemplates in RBG to reduce YAML duplication by ~20%.

Changes

  • Introduce spec.roleTemplates for reusable Pod configurations
  • Use Kubernetes Strategic Merge Patch for merging
  • Add dry-run capability to rbgctl for preview
  • Enhance LWS merging logic documentation
  • Include ControllerRevision rollback testing
  • Add update workflow and ControllerRevision evolution details

Phase 2 Status

ExtraArgs (command parameter deduplication) deferred to Future Considerations pending Phase 1 feedback.

Addresses Review Feedback

刘森栋 added 3 commits October 24, 2025 20:06
  Address review feedback:
  - Clarify LWS merging behavior with detailed flowchart
  - Add rbgctl dry-run mitigation
  - Include ControllerRevision rollback testing
  - Move ExtraArgs to Future Considerations
  - Update milestone target to v0.6.0

  Phase 2 deferred pending community feedback on Phase 1 adoption.
  Address review feedback:
  - Clarify LWS merging behavior with detailed flowchart
  - Add rbgctl dry-run mitigation
  - Include ControllerRevision rollback testing
  - Move ExtraArgs to Future Considerations
  - Update milestone target to v0.6.0

  Phase 2 deferred pending community feedback on Phase 1 adoption.
  Address review feedback:
  - Clarify LWS merging behavior with detailed flowchart
  - Add rbgctl dry-run mitigation
  - Include ControllerRevision rollback testing
  - Move ExtraArgs to Future Considerations
  - Update milestone target to v0.6.0

  Phase 2 deferred pending community feedback on Phase 1 adoption.
@Syspretor
Copy link
Collaborator

Great design. I have one final comment. Please supplement the Controller Behavior section with the update workflow and describe how the ControllerRevision changes during the roleTemplate update.

@RongGu RongGu requested a review from Copilot October 27, 2025 06:12
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This KEP introduces roleTemplates to reduce YAML duplication in RoleBasedGroup (RBG) configurations by approximately 20%. The proposal enables platform teams to define reusable Pod configurations that multiple roles can reference, using Kubernetes Strategic Merge Patch for configuration merging.

Key Changes:

  • Introduces spec.roleTemplates for reusable Pod configurations with templateRef support
  • Documents Strategic Merge Patch behavior for volumes, env vars, resources, and commands
  • Adds dry-run capability and ControllerRevision rollback testing
  • Defers command parameter deduplication (extraArgs) to future considerations

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
keps/8-reduce-yaml-duplication/kep.yaml Defines KEP metadata including authors, reviewers, status, and milestone targeting v0.6.0
keps/8-reduce-yaml-duplication/README.md Complete KEP specification covering motivation, design details, API examples, merge behavior, controller logic, and test plans

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Syspretor Syspretor self-requested a review October 27, 2025 13:05
@Syspretor
Copy link
Collaborator

/lgtm
/approve

@Syspretor Syspretor merged commit aef74de into sgl-project:main Oct 27, 2025
3 checks passed
@cheyang cheyang added this to the v0.5.0 milestone Oct 27, 2025
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.

4 participants