Skip to content

Commit 7031ece

Browse files
authored
Merge pull request #728 from mattcary/label-sc
Add option to test without labels
2 parents b72afce + 60cd509 commit 7031ece

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apiVersion: storage.k8s.io/v1
2+
kind: StorageClass
3+
metadata:
4+
name: csi-gcepd
5+
provisioner: pd.csi.storage.gke.io
6+
parameters:
7+
type: pd-standard
8+
volumeBindingMode: WaitForFirstConsumer

test/run-k8s-integration-ci.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,15 @@ readonly teardown_driver=${GCE_PD_TEARDOWN_DRIVER:-true}
2626
readonly gke_node_version=${GKE_NODE_VERSION:-}
2727
readonly run_intree_plugin_tests=${RUN_INTREE_PLUGIN_TESTS:-false}
2828
readonly use_kubetest2=${USE_KUBETEST2:-false}
29+
readonly test_pd_labels=${TEST_PD_LABELS:-true}
2930

30-
storage_classes=sc-standard.yaml,sc-balanced.yaml,sc-ssd.yaml
31+
storage_classes=sc-balanced.yaml,sc-ssd.yaml
32+
33+
if [[ $test_pd_labels = true ]] ; then
34+
storage_classes=${storage_classes},sc-standard.yaml
35+
else
36+
storage_classes=${storage_classes},sc-standard-no-labels.yaml
37+
fi
3138

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

0 commit comments

Comments
 (0)