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
{{ message }}
This repository was archived by the owner on Dec 6, 2024. It is now read-only.
This relies on a slightly different deployment script: a "deploy.sh"
must exist which knows that it has to dump a test driver configurion
into the file pointed to with CSI_PROW_TEST_DRIVER, if that env
variable is set.
That way, we no longer need to know what capabilities the installed
driver has.
# Ignore: Double quote to prevent globbing and word splitting.
674
685
# It's intentional here for $images.
675
686
# shellcheck disable=SC2086
676
-
if! run env $images"${deploy_hostpath}";then
687
+
if! run env "CSI_PROW_TEST_DRIVER=${CSI_PROW_WORK}/test-driver.yaml"$images"${deploy_driver}";then
677
688
# Collect information about failed deployment before failing.
678
689
collect_cluster_info
679
690
(start_loggers >/dev/null; wait)
680
691
info "For container output see job artifacts."
681
-
die "deploying the hostpath driver with ${deploy_hostpath} failed"
692
+
die "deploying the CSI driver with ${deploy_driver} failed"
682
693
fi
683
694
}
684
695
@@ -804,33 +815,6 @@ install_sanity () (
804
815
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"
805
816
)
806
817
807
-
# The default implementation of this function generates a external
808
-
# driver test configuration for the hostpath driver.
809
-
#
810
-
# The content depends on both what the E2E suite expects and what the
811
-
# installed hostpath driver supports. Generating it here seems prone
812
-
# to breakage, but it is uncertain where a better place might be.
813
-
generate_test_driver () {
814
-
cat <<EOF
815
-
ShortName: csiprow
816
-
StorageClass:
817
-
FromName: true
818
-
SnapshotClass:
819
-
FromName: true
820
-
DriverInfo:
821
-
Name: ${CSI_PROW_HOSTPATH_DRIVER_NAME}
822
-
Capabilities:
823
-
block: true
824
-
persistence: true
825
-
dataSource: true
826
-
multipods: true
827
-
nodeExpansion: true
828
-
controllerExpansion: true
829
-
snapshotDataSource: true
830
-
singleNodeVolume: true
831
-
EOF
832
-
}
833
-
834
818
# Captures pod output while running some other command.
835
819
run_with_loggers () (
836
820
loggers=$(start_loggers -f)
@@ -852,8 +836,6 @@ run_e2e () (
852
836
install_e2e || die "building e2e.test failed"
853
837
install_ginkgo || die "installing ginkgo failed"
854
838
855
-
generate_test_driver >"${CSI_PROW_WORK}/test-driver.yaml"|| die "generating test-driver.yaml failed"
856
-
857
839
# Rename, merge and filter JUnit files. Necessary in case that we run the E2E suite again
858
840
# and to avoid the large number of "skipped" tests that we get from using
859
841
# the full Kubernetes E2E testsuite while only running a few tests.
@@ -1063,7 +1045,7 @@ main () {
1063
1045
cmds="$(grep '^\s*CMDS\s*=' Makefile | sed -e 's/\s*CMDS\s*=//')"
1064
1046
# Get the image that was just built (if any) from the
1065
1047
# top-level Makefile CMDS variable and set the
1066
-
# deploy-hostpath.sh env variables for it. We also need to
0 commit comments