Skip to content

Conversation

@sp98
Copy link
Contributor

@sp98 sp98 commented Nov 6, 2025

If KEDA HPA is enabled, then controller should not override the cound of the RGW instances (spec.gateway.instances). This count will be handled by HPA(KEDA)

TODO:

  • unit tests
  • Manual testing

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 6, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sp98
Once this PR has been reviewed and has the lgtm label, please assign obnoxxx for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

existing.ObjectMeta.OwnerReferences = cephObjectStore.ObjectMeta.OwnerReferences
cephObjectStore.ObjectMeta = existing.ObjectMeta

if len(scaledObjects.Items) > 0 {
Copy link
Contributor

Choose a reason for hiding this comment

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

This check for len > 0 is not needed. The for loop will implicitly be a no-op if it is empty.

Suggested change
if len(scaledObjects.Items) > 0 {

// createCephObjectStore creates CephObjectStore in the desired state
func (r *StorageClusterReconciler) createCephObjectStores(cephObjectStores []*cephv1.CephObjectStore, instance *ocsv1.StorageCluster) error {
scaledObjects := &keda.ScaledObjectList{}
err := r.Client.List(r.ctx, scaledObjects)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this a namespaced resource? I wonder if the list can be focused to our namespace.

If KEDA HPA is enabled, then controller should not override the cound of
the RGW instances (spec.gateway.instances). This count will be handled
by HPA(KEDA)

Signed-off-by: Santosh Pillai <[email protected]>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 13, 2025

@sp98: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/ocs-operator-bundle-e2e-aws 5026dfb link true /test ocs-operator-bundle-e2e-aws

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor

@travisn travisn left a comment

Choose a reason for hiding this comment

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

LGTM, but looks like the unit tests are failing

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