-
Notifications
You must be signed in to change notification settings - Fork 378
spec: Clarify Plugin Name Rules #149
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: Clarify Plugin Name Rules #149
Conversation
The plugin name will be passed in through CO's APIs by the users to refer to the plugin. CSI should clarify the plugin name rules. This patch sepecifies the name in Reverse domain name notation format. Resolves: container-storage-interface#145, container-storage-interface#3
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.
Thanks @edisonxiang for the PR!!
Minor change in wording otherwise LGTM
csi.proto
Outdated
@@ -82,7 +82,13 @@ message GetPluginInfoRequest { | |||
} | |||
|
|||
message GetPluginInfoResponse { | |||
// This field is REQUIRED. | |||
// Specify the name in Reverse domain name notation format, |
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 would change the wording slightly:
The name MUST follow reverse domain name notation format (https://en.wikipedia.org/wiki/Reverse_domain_name_notation). It SHOULD include the plugin's host company name and the plugin name, to minimize the possibility of collisions. It MUST be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. This field is REQUIRED.
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.
Done, Thanks for your suggestion.
LGTM! |
The plugin name will be passed in through CO's
APIs by the users to refer to the plugin.
CSI should clarify the plugin name rules.
This patch sepecifies the name in Reverse domain
name notation format.
Resolves: #145, #3