Skip to content

feat(scaling-adapter): add Labels field for user-specified RBGSA labels#242

Merged
Syspretor merged 3 commits into
sgl-project:mainfrom
sebest:feat/scaling-adapter-labels
Apr 7, 2026
Merged

feat(scaling-adapter): add Labels field for user-specified RBGSA labels#242
Syspretor merged 3 commits into
sgl-project:mainfrom
sebest:feat/scaling-adapter-labels

Conversation

@sebest
Copy link
Copy Markdown
Contributor

@sebest sebest commented Mar 26, 2026

Summary

  • Add a Labels field to ScalingAdapter spec allowing users to specify custom labels on auto-created RBGSAs
  • Custom labels are merged with default labels during RBGSA creation

Test plan

  • Unit tests included
  • All existing tests pass

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@sebest sebest marked this pull request as ready for review March 26, 2026 04:09
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@Syspretor
Copy link
Copy Markdown
Collaborator

@sebest Could you please run make manifests to ensure that the CRDs are updated as well? Thanks!

@Syspretor Syspretor self-requested a review March 26, 2026 12:23
@sebest
Copy link
Copy Markdown
Contributor Author

sebest commented Mar 26, 2026

@sebest Could you please run make manifests to ensure that the CRDs are updated as well? Thanks!

@Syspretor Thanks for the review, I addressed the comment in commit 90f1214

@sebest
Copy link
Copy Markdown
Contributor Author

sebest commented Mar 26, 2026

@Syspretor I don't think the linter error is caused by my PR but I'd like to have a second opinion, let me know what you think.

@Syspretor
Copy link
Copy Markdown
Collaborator

@Syspretor I don't think the linter error is caused by my PR but I'd like to have a second opinion, let me know what you think.

@sebest Sorry, I forgot to mention this earlier. After updating the CRD types, both make manifests and make generate need to be run.

make manifests regenerates the CRD files, and I noticed that you have already run it. However, make generate is still needed to generate the corresponding client-go code.

Could you please run make generate as well? That should make the lint check pass.

@sebest
Copy link
Copy Markdown
Contributor Author

sebest commented Mar 27, 2026

All the signal are green now.

I'll make sure to run make manifests and make generate next time I change the CRDs.

sebest added 3 commits March 28, 2026 21:28
Add a `Labels map[string]string` field to the `ScalingAdapter` struct,
allowing users to specify custom labels (e.g., kwota discovery labels)
on auto-created RoleBasedGroupScalingAdapter resources.

The RBG controller merges user-specified labels with controller-managed
labels (group-name, role-name), with controller labels always taking
precedence. Labels are reconciled on both creation and subsequent
updates to ensure convergence.
Regenerate deepcopy and client-go apply configuration code
after adding the Labels field to ScalingAdapter.
@sebest sebest force-pushed the feat/scaling-adapter-labels branch from ffbcf96 to 81b5925 Compare March 29, 2026 04:30
@sebest
Copy link
Copy Markdown
Contributor Author

sebest commented Apr 1, 2026

@Syspretor can I get a review ?

@Syspretor
Copy link
Copy Markdown
Collaborator

@Syspretor can I get a review ?

@sebest I’ve reviewed it and I think this PR looks good, so I’ve merged it. Thanks for your contribution!

Copy link
Copy Markdown
Collaborator

@Syspretor Syspretor left a comment

Choose a reason for hiding this comment

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

/lgtm

@Syspretor Syspretor merged commit 67cb71d into sgl-project:main Apr 7, 2026
9 checks passed
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.

2 participants