Skip to content

Commit

Permalink
fix upgrade, uninstall scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jkpe committed Jun 14, 2024
1 parent 524be26 commit 96ddb87
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
5 changes: 3 additions & 2 deletions stacks/openebs-nfs-provisioner/uninstall.sh
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
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 96ddb87

Please sign in to comment.