Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: openebs nfs provisioner #528

Merged
merged 3 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading