Skip to content

Commit

Permalink
Merge pull request #180 from min-zh/dev
Browse files Browse the repository at this point in the history
fix create pvc from snapshot
  • Loading branch information
zheng1 authored Aug 26, 2020
2 parents b387c35 + 43436f6 commit 7d866ee
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions pkg/disk/rpcserver/controllerserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ func (cs *ControllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
VolumeId: *exVol.VolumeID,
CapacityBytes: exVolSizeByte,
VolumeContext: req.GetParameters(),
ContentSource: req.GetVolumeContentSource(),
AccessibleTopology: cs.GetVolumeTopology(exVol),
},
}, nil
Expand Down Expand Up @@ -418,7 +419,7 @@ func (cs *ControllerServer) DeleteVolume(ctx context.Context, req *csi.DeleteVol
// volume capability + Required
// readonly + Required (This field is NOT provided when requesting in Kubernetes)
func (cs *ControllerServer) ControllerPublishVolume(ctx context.Context, req *csi.ControllerPublishVolumeRequest) (*csi.
ControllerPublishVolumeResponse, error) {
ControllerPublishVolumeResponse, error) {
funcName := "ControllerPublishVolume"
info, hash := common.EntryFunction(funcName)
klog.Info(info)
Expand Down Expand Up @@ -536,7 +537,7 @@ func (cs *ControllerServer) ControllerPublishVolume(ctx context.Context, req *cs
// This operation MUST be idempotent
// csi.ControllerUnpublishVolumeRequest: volume id +Required
func (cs *ControllerServer) ControllerUnpublishVolume(ctx context.Context, req *csi.ControllerUnpublishVolumeRequest) (*csi.
ControllerUnpublishVolumeResponse, error) {
ControllerUnpublishVolumeResponse, error) {
funcName := "ControllerUnpublishVolume"
info, hash := common.EntryFunction(funcName)
klog.Info(info)
Expand Down Expand Up @@ -606,7 +607,7 @@ func (cs *ControllerServer) ControllerUnpublishVolume(ctx context.Context, req *
// csi.ValidateVolumeCapabilitiesRequest: volume id + Required
// volume capability + Required
func (cs *ControllerServer) ValidateVolumeCapabilities(ctx context.Context, req *csi.ValidateVolumeCapabilitiesRequest) (*csi.
ValidateVolumeCapabilitiesResponse, error) {
ValidateVolumeCapabilitiesResponse, error) {
funcName := "ValidateVolumeCapabilities"
info, hash := common.EntryFunction(funcName)
klog.Info(info)
Expand Down Expand Up @@ -754,7 +755,7 @@ func (cs *ControllerServer) GetCapacity(ctx context.Context, req *csi.GetCapacit
// Source volume id is REQUIRED
// Snapshot name is REQUIRED
func (cs *ControllerServer) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequest) (*csi.
CreateSnapshotResponse, error) {
CreateSnapshotResponse, error) {
funcName := "CreateSnapshot"
info, hash := common.EntryFunction(funcName)
klog.Info(info)
Expand Down

0 comments on commit 7d866ee

Please sign in to comment.