Skip to content

provider-server: enable csi drivers for ocs-client-op #3195

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

rohan47
Copy link
Contributor

@rohan47 rohan47 commented Apr 29, 2025

Send information of desired csi drivers to enable to ocs-client-operator

@rohan47
Copy link
Contributor Author

rohan47 commented Apr 29, 2025

/retest-required

@@ -118,13 +118,30 @@ message StorageConfigResponse{
SystemAttributes systemAttributes = 3;
}

message RbdDriverRequirements {
bool generateOmapInfo = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

You are surfacing requirements so it does not make sense to have something named as a verb (generate)

Suggested change
bool generateOmapInfo = 1;
bool omapInfo = 1;

}

message CsiDrivers {
RbdDriverRequirements DesiredRbdDriver = 1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let make sure we are naming the field in accordance to our terminology. As we decided to call these "requirements" I would argue the name of the field should be RbdDriverRequirments

// GetDesiredClientStateResponse holds the response for the GetDesiredClientState API request
message GetDesiredClientStateResponse{
repeated bytes kubeResources = 1;
string desiredStateHash = 2;
string clientOperatorChannel = 3;
bool maintenanceMode = 4;
bool mirrorEnabled = 5;
CsiDrivers CsiDrivers = 6;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need a substruct here? Can we just have the requirement sections on the root struct?

desiredClientConfigHash := getDesiredClientConfigHash(
channelName,
storageConsumer,
isEncryptionInTransitEnabled(storageCluster.Spec.Network),
inMaintenanceMode,
isConsumerMirrorEnabled,
isNfsDriverEnabled,
Copy link
Contributor

Choose a reason for hiding this comment

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

Why only NFS? what about the other drivers?

Comment on lines 402 to 404
response.CsiDrivers.DesiredRbdDriver = &pb.RbdDriverRequirements{}
response.CsiDrivers.DesiredRbdDriver.GenerateOmapInfo = isConsumerMirrorEnabled
response.CsiDrivers.DesiredCephFsDriver = &pb.CephFsDriverRequirements{}
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 assuming these are always enabled?

Copy link
Contributor

openshift-ci bot commented May 5, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: rohan47
Once this PR has been reviewed and has the lgtm label, please ask for approval from nb-ohad. 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

@@ -118,13 +118,26 @@ message StorageConfigResponse{
SystemAttributes systemAttributes = 3;
}

message RbdDriverRequirements {
bool omapInfo = 1;
Copy link
Member

Choose a reason for hiding this comment

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

@nb-ohad, do we want to move this to operatorConfig Spec instead of Driver Spec and always deploy it?

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 20, 2025
@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants