Skip to content
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

Why don't some CSI requests have [parameters] or [secrets]? #484

Closed
lambdaS-zh opened this issue Jun 22, 2021 · 5 comments
Closed

Why don't some CSI requests have [parameters] or [secrets]? #484

lambdaS-zh opened this issue Jun 22, 2021 · 5 comments

Comments

@lambdaS-zh
Copy link

Referring to secrets requirements, secrets MAY be required by plugin to complete a RPC request. My understanding is that all volume operations in one SP context(e.g. StorageClass in k8s) share the same parameters or secrets, while all snapshot operations share another pack of parameters or secrets.

So why don't some CSI requests have parameters or secrets? I found that NodeUnstageVolumeRequest, NodeUnpublishVolumeRequest, ListVolumesRequest and some others don't have the 2 fields. By comparison, all snapshot requests have the field secrets.

@jdef
Copy link
Member

jdef commented Jun 22, 2021 via email

@lambdaS-zh
Copy link
Author

@jdef not yet. But someone else may meet problems. For example, storage vendors may expect their plugin serves in front of multiple storage backends which have different credentials(#461). This may require all volume operations contain those informations.
I'm confused CreateVolumeRequest has those fields while ListVolumesRequest does not.
Personally, I just think it's better to keep the same style as those in snapshot.

@lambdaS-zh
Copy link
Author

@jdef On the other hand, also I'm not sure whether this use case should be supported. Maybe this should be solved by storage backends themselves.

@jdef
Copy link
Member

jdef commented Jun 22, 2021 via email

@lambdaS-zh
Copy link
Author

@jdef By the same logic, is the secrets of ListSnapshotsRequest snapshot specific?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants