-
Notifications
You must be signed in to change notification settings - Fork 378
spec: default field sizes; clarify OPTIONAL fields #132
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
spec: default field sizes; clarify OPTIONAL fields #132
Conversation
No changes for OPTIONAL error code fields since revisions for the error code section are WIP. |
spec.md
Outdated
|------------|---------------------| | ||
| 128 bytes | string | | ||
| 4 KiB | map<string, string> | | ||
| 4 KiB | repeated string | |
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.
As part of the change you did in #133, node_ids
will be repeated string
as well. If we limit this, we'll introduce a limit for the number of nodes this spec can handle. I'd suggest we remove this limitation here. Instead, explicitly mention that mount_flags
has a limit of 4K bytes.
dd6510f
to
37c8ba0
Compare
37c8ba0
to
70bd4a5
Compare
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.
LGTM!
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.
LGTM
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.
👍
uint64 capacity_bytes = 1; | ||
|
||
// Contains identity information for the created volume. This field is | ||
// REQUIRED. The identity information will be used by the CO in | ||
// subsequent calls to refer to the provisioned volume. This field | ||
// should not exceed 1MiB. |
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.
Hi @jdef,
I just want to be clear that the ID string previously would be allowed a field size of 1MiB, but according to the spec today the volume ID is now limited to 128 bytes. Is that correct?
Yes. I forget where it was discussed (CSI WG sync, CSI Community sync,
both?) but the consensus was that 1MiB was probably overkill for an ID
field - that we should start small and if we find that it's too limiting we
can change the spec later to allow for longer IDs.
…On Fri, Feb 2, 2018 at 5:42 PM, Schley Andrew Kutz ***@***.*** > wrote:
***@***.**** commented on this pull request.
------------------------------
In spec.md
<#132 (comment)>
:
> uint64 capacity_bytes = 1;
// Contains identity information for the created volume. This field is
// REQUIRED. The identity information will be used by the CO in
- // subsequent calls to refer to the provisioned volume. This field
- // should not exceed 1MiB.
Hi @jdef <https://github.com/jdef>,
I just want to be clear that the ID string previously would be allowed a
field size of 1MiB, but according to the spec today the volume ID is now
limited to 128 bytes. Is that correct?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#132 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACPVLCe1QWJy_VsY-7W0LuZWcbotK7u5ks5tQ49YgaJpZM4QN3iR>
.
|
As discussed in the CSI WG meeting on 2017-10-31, a "general field size" clause has been added to the spec. Also, language clarifying the intent and purpose of zero-values for OPTIONAL fields has been added to fields as appropriate.