Skip to content

Commit 88ac9bd

Browse files
feat: disable openebs-device storage class (#333)
we only want to support one storage class at this stage. Co-authored-by: Andrew Lavery <[email protected]>
1 parent ab2c758 commit 88ac9bd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

e2e/scripts/single-node-install.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
102111
ensure_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

pkg/addons/openebs/openebs.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
},

0 commit comments

Comments
 (0)