Skip to content

Add option to test without labels #728

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test/k8s-integration/config/sc-standard-no-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: csi-gcepd
provisioner: pd.csi.storage.gke.io
parameters:
type: pd-standard
volumeBindingMode: WaitForFirstConsumer
9 changes: 8 additions & 1 deletion test/run-k8s-integration-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@ readonly teardown_driver=${GCE_PD_TEARDOWN_DRIVER:-true}
readonly gke_node_version=${GKE_NODE_VERSION:-}
readonly run_intree_plugin_tests=${RUN_INTREE_PLUGIN_TESTS:-false}
readonly use_kubetest2=${USE_KUBETEST2:-false}
readonly test_pd_labels=${TEST_PD_LABELS:-true}

storage_classes=sc-standard.yaml,sc-balanced.yaml,sc-ssd.yaml
storage_classes=sc-balanced.yaml,sc-ssd.yaml

if [[ $test_pd_labels = true ]] ; then
storage_classes=${storage_classes},sc-standard.yaml
else
storage_classes=${storage_classes},sc-standard-no-labels.yaml
fi

if [[ -n $gce_region ]] ; then
storage_classes="${storage_classes}",sc-regional.yaml
Expand Down