-
Notifications
You must be signed in to change notification settings - Fork 373
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
Add capability for ControllerPublishVolume.readonly
field
#310
Add capability for ControllerPublishVolume.readonly
field
#310
Conversation
Will change this per #293 (comment) |
bb04428
to
fbebc7a
Compare
ControllerPublishVolume.readonly
field
@julian-hj @jieyu per our discussion, I changed this from a comment to a new capability. |
// REQUIRED. | ||
// Whether to publish the volume in readonly mode. This field MUST be | ||
// specified only if SP has PUBLISH_READONLY controller capability. | ||
// This is a REQUIRED field. | ||
bool readonly = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is making readonly
flag optional simpler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem with making it optional is that the CO doesn't know when to set it. If CO sets it to true and a plugin doesn't support it, what happens? Consider the case where the CO uses the same flag for both ControllerPublish and NodePublish readonly -- we don't want to get in to a case where the CO thinks a volume is readonly but it's not.
csi.proto
Outdated
// Whether to publish the volume in readonly mode. This field is | ||
// REQUIRED. | ||
// Whether to publish the volume in readonly mode. This field MUST be | ||
// specified only if SP has PUBLISH_READONLY controller capability. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This field MUST be REQUIRED specified only if
conflicts with This is a REQUIRED field
.
We should say that if the SP does not have PUBLISH_READONLY capability, the CO will set this field to false
.
b1efdca
to
1f2ff53
Compare
Feedback addressed PTAL @jieyu |
1f2ff53
to
d7df952
Compare
Closes #293