File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,15 @@ wait_for_nginx_pods() {
9999 done
100100}
101101
102+ check_openebs_storage_class () {
103+ scs=$( kubectl get sc --no-headers | wc -l)
104+ if [ " $scs " -ne " 1" ]; then
105+ echo " Expected 1 storage class, found $scs "
106+ kubectl get sc
107+ return 1
108+ fi
109+ }
110+
102111ensure_app_not_upgraded () {
103112 if kubectl get ns | grep -q goldpinger ; then
104113 echo " found goldpinger ns"
@@ -132,6 +141,10 @@ main() {
132141 echo " Failed to install embedded-cluster"
133142 exit 1
134143 fi
144+ if ! check_openebs_storage_class; then
145+ echo " Failed to validate if only openebs storage class is present"
146+ exit 1
147+ fi
135148 if ! wait_for_nginx_pods; then
136149 echo " Failed waiting for the application's nginx pods"
137150 exit 1
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ var helmValues = map[string]interface{}{
3131 "enabled" : false ,
3232 },
3333 "localprovisioner" : map [string ]interface {}{
34+ "deviceClass" : map [string ]interface {}{
35+ "enabled" : false ,
36+ },
3437 "hostpathClass" : map [string ]interface {}{
3538 "isDefaultClass" : true ,
3639 },
You can’t perform that action at this time.
0 commit comments