Skip to content

Commit

Permalink
Merge pull request #728 from mattcary/label-sc
Browse files Browse the repository at this point in the history
Add option to test without labels
  • Loading branch information
k8s-ci-robot authored Mar 18, 2021
2 parents b72afce + 60cd509 commit 7031ece
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
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

0 comments on commit 7031ece

Please sign in to comment.