Skip to content

Commit c65f2a9

Browse files
committed
chore(workflow): add openebs custom config file
1 parent 396dfb1 commit c65f2a9

1 file changed

Lines changed: 15 additions & 7 deletions

File tree

_scripts/install.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,21 @@ EOF
241241
}
242242

243243
function install_openebs {
244-
helm install openebs drycc/openebs \
245-
--namespace openebs \
246-
--create-namespace \
247-
--set localprovisioner.basePath=${LOCAL_PROVISIONER_PATH:-"/var/openebs/local"} \
248-
--set nfs-provisioner.enabled=true --wait
249-
kubectl patch storageclass ${DEFAULT_STORAGE_CLASS:-"openebs-hostpath"} \
250-
-p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
244+
if [[ -z "${OPENEBS_CONFIG_FILE}" ]] ; then
245+
helm install openebs drycc/openebs \
246+
--namespace openebs \
247+
--create-namespace \
248+
--set localprovisioner.basePath=${LOCAL_PROVISIONER_PATH:-"/var/openebs/local"} \
249+
--set nfs-provisioner.enabled=true \
250+
--set provisioner.hostpathClass.isDefaultClass=true \
251+
--wait
252+
else
253+
helm install openebs drycc/openebs \
254+
--namespace openebs \
255+
--create-namespace \
256+
--wait \
257+
-f "${OPENEBS_CONFIG_FILE}"
258+
fi
251259
}
252260

253261
function check_drycc {

0 commit comments

Comments
 (0)