Skip to content

Commit

Permalink
fix: openebs nfs provisioner (#528)
Browse files Browse the repository at this point in the history
* Update deploy.sh

* chmod the files

* fix upgrade, uninstall scripts

---------

Co-authored-by: Jack Pearce <[email protected]>
  • Loading branch information
jkpedo and jkpe authored Jun 17, 2024
1 parent 9d916a8 commit c74b12a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 26 deletions.
20 changes: 8 additions & 12 deletions stacks/openebs-nfs-provisioner/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ set -e
################################################################################
# repo
################################################################################
helm repo add --force-update openebs https://openebs.github.io/openebs
helm repo add openebs-nfs https://openebs-archive.github.io/dynamic-nfs-provisioner
helm repo update > /dev/null

################################################################################
# chart
################################################################################
STACK="openebs"
CHART="openebs/openebs"
STACK="openebs-nfs-provisioner"
CHART="openebs-nfs/nfs-provisioner"
CHART_VERSION="0.11.0"
NAMESPACE="openebs-nfs-provisioner"
CHART_VERSION="4.0.1"

if [ -z "${MP_KUBERNETES}" ]; then
# use local version of values.yml
Expand All @@ -29,16 +29,12 @@ else
STORAGE_CLASS_MANIFEST="https://raw.githubusercontent.com/digitalocean/marketplace-kubernetes/master/stacks/openebs-nfs-provisioner/assets/manifests/sc-nfs-rwx.yaml"
fi

helm upgrade $STACK --namespace $NAMESPACE \
$CHART \
helm upgrade "$STACK" "$CHART" \
--atomic \
--create-namespace \
--install \
--set nfs-provisioner.enabled=true \
--set lvm-localpv.crds.lvmLocalPv.enabled=false \
--set zfs-localpv.crds.zfsLocalPv.enabled=false \
--set mayastor.agents.core.rebuild.partial.enabled=false \
--set openebs-crds.csi.volumeSnapshots.enabled=false \
--timeout 20m0s \
--timeout 8m0s \
--namespace "$NAMESPACE" \
--values "$values" \
--version "$CHART_VERSION"

Expand Down
5 changes: 3 additions & 2 deletions stacks/openebs-nfs-provisioner/uninstall.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ set -e
################################################################################
# chart
################################################################################
STACK="openebs"
STACK="openebs-nfs-provisioner"
NAMESPACE="openebs-nfs-provisioner"


helm uninstall "$STACK" \
--namespace "$NAMESPACE"

Expand All @@ -21,4 +22,4 @@ else
fi

kubectl delete -f "$STORAGE_CLASS_MANIFEST"
kubectl delete --ignore-not-found=true namespace "$NAMESPACE"
kubectl delete --ignore-not-found=true namespace "$NAMESPACE"
18 changes: 6 additions & 12 deletions stacks/openebs-nfs-provisioner/upgrade.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ set -e
################################################################################
# repo
################################################################################
helm repo add --force-update openebs https://openebs.github.io/openebs
helm repo add openebs-nfs https://openebs-archive.github.io/dynamic-nfs-provisioner
helm repo update > /dev/null

################################################################################
# chart
################################################################################
STACK="openebs"
CHART="openebs/openebs"
STACK="openebs-nfs-provisioner"
CHART="openebs-nfs/nfs-provisioner"
NAMESPACE="openebs-nfs-provisioner"

if [ -z "${MP_KUBERNETES}" ]; then
Expand All @@ -24,12 +24,6 @@ else
values="https://raw.githubusercontent.com/digitalocean/marketplace-kubernetes/master/stacks/openebs-nfs-provisioner/values.yml"
fi

helm upgrade "$STACK" --namespace "$NAMESPACE" \
"$CHART" \
--set nfs-provisioner.enabled=true \
--set lvm-localpv.crds.lvmLocalPv.enabled=false \
--set zfs-localpv.crds.zfsLocalPv.enabled=false \
--set mayastor.agents.core.rebuild.partial.enabled=false \
--set openebs-crds.csi.volumeSnapshots.enabled=false \
--timeout 20m0s \
--version "$CHART_VERSION"
helm upgrade "$STACK" "$CHART" \
--namespace "$NAMESPACE" \
--values "$values"

0 comments on commit c74b12a

Please sign in to comment.