Skip to content

Commit

Permalink
test: run external inline volume tests
Browse files Browse the repository at this point in the history
test: enable inline volume in external e2e tests

fix inline volume tests

fix format

shared
  • Loading branch information
andyzhangx committed Apr 10, 2022
1 parent 0773561 commit da26b07
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/external-e2e/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ setup_e2e_binaries() {
curl -sL https://storage.googleapis.com/kubernetes-release/release/v1.23.5/kubernetes-test-linux-amd64.tar.gz --output e2e-tests.tar.gz
tar -xvf e2e-tests.tar.gz && rm e2e-tests.tar.gz

export EXTRA_HELM_OPTIONS="--set driver.name=$DRIVER.csi.k8s.io --set controller.name=csi-$DRIVER-controller --set node.name=csi-$DRIVER-node"
export EXTRA_HELM_OPTIONS="--set driver.name=$DRIVER.csi.k8s.io --set controller.name=csi-$DRIVER-controller --set node.name=csi-$DRIVER-node --set feature.enableInlineVolume=true"

# test on alternative driver name
sed -i "s/nfs.csi.k8s.io/$DRIVER.csi.k8s.io/g" deploy/example/storageclass-nfs.yaml
Expand Down
6 changes: 6 additions & 0 deletions test/external-e2e/testdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ StorageClass:
FromFile: /tmp/csi/storageclass.yaml
DriverInfo:
Name: test.csi.k8s.io
SupportedFsType: {"nfs"}
Capabilities:
persistence: true
exec: true
multipods: true
RWX: true
fsGroup: true
InlineVolumes:
- Attributes:
server: nfs-server.default.svc.cluster.local
share: /
Shared: true

0 comments on commit da26b07

Please sign in to comment.