Skip to content

Conversation

@rewantsoni
Copy link
Member

  • CSI settings are controlled by ocs-client-op via ceph-csi-op. We no longer need to specify these settings on the ocs-op configmap
  • Clusters object is no longer needed in ocsinit, we just need to know the number of storageClusters to set the RookCurrentNamespaceOnlyKey var

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 15, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rewantsoni
Once this PR has been reviewed and has the lgtm label, please assign iamniting 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

@rewantsoni
Copy link
Member Author

/retest-required

util.TopologyDomainLabelsKey: r.getTopologyDomainLabelsKeyValue(),
util.EnableNFSKey: r.getEnableNFSKeyValue(),
util.EnableCephfsKey: enableCephfsVal,
util.RookCurrentNamespaceOnlyKey: strconv.FormatBool(!(len(storageClusterList.Items) > 1)),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we declaring another variable storageClusterList if previously we could do r.clusters.GetStorageClusters()

Copy link
Member Author

Choose a reason for hiding this comment

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

Instead of creating the entire cluster object, I think it's better to list the storageClusters and then use them

crdsBeingWatched sync.Map
}

// SetupWithManager sets up a controller with a manager
Copy link
Contributor

Choose a reason for hiding this comment

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

Any changes in the SetupWithManager func? and any reason to move it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, changed the predicate of StorageCluster watch, no reason but I think it makes it more readable

Copy link
Contributor

Choose a reason for hiding this comment

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

either do a refactor or do a fix with refactor only if required but not both in general which results in hunting for the change.

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 15, 2025

@rewantsoni: 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 1ebee71 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.

@malayparida2000
Copy link
Contributor

malayparida2000 commented Oct 15, 2025

@rewantsoni THis change would need to accompany changes in the downstream rook csv or else the rook-ceph-operator csv would not succeed as its pod would be in error.

@malayparida2000
Copy link
Contributor

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