You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Ignore: Double quote to prevent globbing and word splitting.
681
692
# It's intentional here for $images.
682
693
# shellcheck disable=SC2086
683
-
if! run env $images"${deploy_hostpath}";then
694
+
if! run env "CSI_PROW_TEST_DRIVER=${CSI_PROW_WORK}/test-driver.yaml"$images"${deploy_driver}";then
684
695
# Collect information about failed deployment before failing.
685
696
collect_cluster_info
686
697
(start_loggers >/dev/null; wait)
687
698
info "For container output see job artifacts."
688
-
die "deploying the hostpath driver with ${deploy_hostpath} failed"
699
+
die "deploying the CSI driver with ${deploy_driver} failed"
689
700
fi
690
701
}
691
702
@@ -811,33 +822,6 @@ install_sanity () (
811
822
run_with_go "${CSI_PROW_GO_VERSION_SANITY}" go test -c -o "${CSI_PROW_WORK}/csi-sanity""${CSI_PROW_SANITY_IMPORT_PATH}/cmd/csi-sanity"|| die "building csi-sanity failed"
812
823
)
813
824
814
-
# The default implementation of this function generates a external
815
-
# driver test configuration for the hostpath driver.
816
-
#
817
-
# The content depends on both what the E2E suite expects and what the
818
-
# installed hostpath driver supports. Generating it here seems prone
819
-
# to breakage, but it is uncertain where a better place might be.
820
-
generate_test_driver () {
821
-
cat <<EOF
822
-
ShortName: csiprow
823
-
StorageClass:
824
-
FromName: true
825
-
SnapshotClass:
826
-
FromName: true
827
-
DriverInfo:
828
-
Name: ${CSI_PROW_HOSTPATH_DRIVER_NAME}
829
-
Capabilities:
830
-
block: true
831
-
persistence: true
832
-
dataSource: true
833
-
multipods: true
834
-
nodeExpansion: true
835
-
controllerExpansion: true
836
-
snapshotDataSource: true
837
-
singleNodeVolume: true
838
-
EOF
839
-
}
840
-
841
825
# Captures pod output while running some other command.
842
826
run_with_loggers () (
843
827
loggers=$(start_loggers -f)
@@ -859,8 +843,6 @@ run_e2e () (
859
843
install_e2e || die "building e2e.test failed"
860
844
install_ginkgo || die "installing ginkgo failed"
861
845
862
-
generate_test_driver >"${CSI_PROW_WORK}/test-driver.yaml"|| die "generating test-driver.yaml failed"
863
-
864
846
# Rename, merge and filter JUnit files. Necessary in case that we run the E2E suite again
865
847
# and to avoid the large number of "skipped" tests that we get from using
866
848
# the full Kubernetes E2E testsuite while only running a few tests.
@@ -1070,7 +1052,7 @@ main () {
1070
1052
cmds="$(grep '^\s*CMDS\s*=' Makefile | sed -e 's/\s*CMDS\s*=//')"
1071
1053
# Get the image that was just built (if any) from the
1072
1054
# top-level Makefile CMDS variable and set the
1073
-
# deploy-hostpath.sh env variables for it. We also need to
0 commit comments