-
Notifications
You must be signed in to change notification settings - Fork 378
Drop GetSupportedVersions in favor of versioned proto package #202
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
Drop GetSupportedVersions in favor of versioned proto package #202
Conversation
@@ -568,15 +499,13 @@ Such actions MAY include, but SHALL NOT be limited to, the following: | |||
* Notifying the plugin supervisor. | |||
|
|||
The Plugin MAY verify that it has the right configurations, devices, dependencies and drivers in order to run and return a success if the validation succeeds. | |||
The CO MAY invoke this RPC at any time after version negotiation has been completed (see `GetSupportedVersions`). | |||
The CO MAY invoke this RPC at any time. |
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.
If we decide to add a Versioned
service later (and add back GetSupportedVersions
) there will be ordering dependencies here.
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.
I think that's ok...we would just need to add the version with a different position id. In other words, the following is totally valid:
message ControllerUnpublishVolumeRequest {
Version version = 4;
string volume_id = 1;
...
}
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 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
Can we call it something else then, |
|
I guess what will get confusing is, if I want to support v1.2 and v1.3 how do I know which of these internal versions correspond to that external version. If we just align our external release versions with the internal version, that would be trivial. |
If you guys are concerned with using v1 at this moment, i'd suggest use v0 for this release, and try to jump to v1 and 1.0 in the next release. |
The package namespacing is very much tied to the release, but there is no need to bump the package namespacing to support new features, which is why it's tied to vMAJOR. |
I like this idea. Tying the package name to the Major release makes sense. We can call this v0 and push to get to v1 sooner. |
@cpuguy83 @julian-hj are you guys ok with s/v1/v0/ in this PR. If yes, i'll prepare a commit since @jdef is out today |
I think that works. |
Yeah, sure. It has the down-side that we will be striking a new api version when we go 1.0 whether we need to or not, but I think it’s better to do that than live with the off-by-one discrepancy forever.
From: Jie Yu <[email protected]<mailto:[email protected]>>
Reply-To: container-storage-interface/spec <[email protected]<mailto:[email protected]>>
Date: Friday, February 23, 2018 at 12:36 PM
To: container-storage-interface/spec <[email protected]<mailto:[email protected]>>
Cc: Corporate User <[email protected]<mailto:[email protected]>>, Mention <[email protected]<mailto:[email protected]>>
Subject: Re: [container-storage-interface/spec] Drop GetSupportedVersions in favor of versioned proto package (#202)
@cpuguy83<https://github.com/cpuguy83> @julian-hj<https://github.com/julian-hj> are you guys ok with s/v1/v0/ in this PR. If yes, i'll prepare a commit since @jdef<https://github.com/jdef> is out today
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#202 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AIF0_JiG4f4xBCNhgFBorZHn2pnPO6oCks5tXyFQgaJpZM4SQHcJ>.
|
Resolved by #204 |
As per the CSI discussion today regarding versioning:
Versioned
service later if needed; doing it now isn't critical and it will be hard to remove later on if we decide we don't need it.Version version = 1
field specs