Skip to content

Feature: support rbg scaling adapter #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Syspretor
Copy link
Contributor

No description provided.

@cheyang
Copy link
Collaborator

cheyang commented Jul 6, 2025

@Syspretor Please fix the conflict issue.

@Syspretor Syspretor force-pushed the feature/support-rbg-scaling-adaptor branch from a990249 to b933822 Compare July 7, 2025 01:54
@Syspretor Syspretor force-pushed the feature/support-rbg-scaling-adaptor branch 5 times, most recently from de801f2 to 53abcd5 Compare July 7, 2025 11:26
setupLog.Error(err, "unable to create controller", "controller", "RoleBasedGroupScalingAdapter")
os.Exit(1)
}
if err = rbgScalingAdapterReconciler.SetupWithManager(mgr, options); err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest integrating the CheckCrdExists logic directly into the SetupWithManager method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All the existence validations are currently placed within the main program. Perhaps we can keep the current logic for now and later propose a PR to comprehensively revise the validation of CRDs.

@Syspretor Syspretor force-pushed the feature/support-rbg-scaling-adaptor branch 6 times, most recently from 5085a60 to 817527f Compare July 9, 2025 13:10
@Syspretor Syspretor force-pushed the feature/support-rbg-scaling-adaptor branch from 817527f to 2c30b60 Compare July 9, 2025 13:26
b.ensureObjectMetaApplyConfigurationExists()
for i := range values {
if values[i] == nil {
panic("nil value passed to WithOwnerReferences")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest returning error rather than panic.

limitations under the License.
*/

package workloads
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo: rolebaegroupscalingadapter_controller.go -> rolebasedgroupscalingadapter_controller.go

@cheyang
Copy link
Collaborator

cheyang commented Jul 11, 2025

I suggest adding Scaling Cool-Down Mechanism in next PR.

if err := r.client.Get(ctx, types.NamespacedName{Name: req.Name, Namespace: req.Namespace}, rbgScalingAdapter); err != nil {
return ctrl.Result{}, client.IgnoreNotFound(err)
}
if rbgScalingAdapter.DeletionTimestamp != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add TODO, this adapter's lifecycle is binding to RBG object to make it easy to management.

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.

3 participants