Skip to content

Commit 11f4ebe

Browse files
authored
Merge pull request #517 from andyzhangx/ReadWriteOncePod-cap2
feat: add ReadWriteOncePod cap
2 parents ad9bb8f + dd6f13c commit 11f4ebe

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ blob-darwin:
108108

109109
.PHONY: container
110110
container: blob
111-
docker build -t $(IMAGE_TAG) -f ./pkg/blobplugin/dev.Dockerfile .
111+
docker build -t $(IMAGE_TAG) --output=type=docker -f ./pkg/blobplugin/dev.Dockerfile .
112112

113113
.PHONY: container-linux
114114
container-linux:

pkg/blob/blob.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ func (d *Driver) Run(endpoint, kubeconfig string, testBool bool) {
188188
//csi.ControllerServiceCapability_RPC_CREATE_DELETE_SNAPSHOT,
189189
//csi.ControllerServiceCapability_RPC_LIST_SNAPSHOTS,
190190
csi.ControllerServiceCapability_RPC_EXPAND_VOLUME,
191+
csi.ControllerServiceCapability_RPC_SINGLE_NODE_MULTI_WRITER,
191192
})
192193
d.AddVolumeCapabilityAccessModes([]csi.VolumeCapability_AccessMode_Mode{
193194
csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER,
@@ -202,7 +203,7 @@ func (d *Driver) Run(endpoint, kubeconfig string, testBool bool) {
202203
d.AddNodeServiceCapabilities([]csi.NodeServiceCapability_RPC_Type{
203204
csi.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME,
204205
csi.NodeServiceCapability_RPC_GET_VOLUME_STATS,
205-
csi.NodeServiceCapability_RPC_UNKNOWN,
206+
csi.NodeServiceCapability_RPC_SINGLE_NODE_MULTI_WRITER,
206207
})
207208

208209
s := csicommon.NewNonBlockingGRPCServer()

test/sanity/run-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ _output/blobplugin --endpoint "$nodeendpoint" --nodeid "$nodeid" --enable-blob-m
3737

3838
echo "Begin to run sanity test..."
3939
readonly CSI_SANITY_BIN='csi-sanity'
40-
"$CSI_SANITY_BIN" --ginkgo.v --csi.endpoint=$nodeendpoint --csi.controllerendpoint=$controllerendpoint -ginkgo.skip="should fail when requesting to create a volume with already existing name and different capacity|should be idempotent"
40+
"$CSI_SANITY_BIN" --ginkgo.v --csi.endpoint=$nodeendpoint --csi.controllerendpoint=$controllerendpoint -ginkgo.skip="should fail when requesting to create a volume with already existing name and different capacity|should be idempotent|should return appropriate capabilities"

0 commit comments

Comments
 (0)