File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -241,13 +241,21 @@ EOF
241241}
242242
243243function 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
253261function check_drycc {
You can’t perform that action at this time.
0 commit comments