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

CSI 1.1 Implementation #1087

Closed
wants to merge 2 commits into from

Conversation

ggriffiths
Copy link
Contributor

What this PR does / why we need it:

  • Adds CSI 1.1 support

Which issue(s) this PR fixes (optional)
Closes #1086

Special notes for your reviewer:

@ggriffiths ggriffiths requested a review from lpabon April 25, 2019 20:39
@@ -266,6 +276,17 @@ func (s *OsdCsiServer) CreateVolume(
return nil, status.Error(codes.InvalidArgument, e)
}

// Get parent ID from request: snapshot or volume
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new csi-sanity test checks for this feature. It seems we missed it in the past. This results in a volume snapshot within our driver.

I can change this if needed, but this seemed to make the most sense to me.

capExpandVolume := &csi.ControllerServiceCapability{
Type: &csi.ControllerServiceCapability_Rpc{
Rpc: &csi.ControllerServiceCapability_RPC{
Type: csi.ControllerServiceCapability_RPC_EXPAND_VOLUME,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only need to implement ControllerServiceCapability_RPC_EXPAND_VOLUME as opposed to the Node Volume Expand capability, as our volumes can be resized while online (mounted)

@ggriffiths
Copy link
Contributor Author

Closing this until I fix make docker-test. Will reopen when ready for review.

@ggriffiths ggriffiths closed this Apr 25, 2019
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

Successfully merging this pull request may close these issues.

CSI 1.1 Support
1 participant