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

Update openebs to the latest version #526

Merged
merged 2 commits into from
Jun 10, 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
22 changes: 13 additions & 9 deletions stacks/openebs-nfs-provisioner/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ set -e
################################################################################
# repo
################################################################################
helm repo add openebs https://openebs.github.io/openebs
helm repo add --force-update openebs https://openebs.github.io/openebs
helm repo update > /dev/null

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

if [ -z "${MP_KUBERNETES}" ]; then
# use local version of values.yml
Expand All @@ -28,14 +29,17 @@ 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" "$CHART" \
--atomic \
helm upgrade $STACK --namespace $NAMESPACE \
$CHART \
--create-namespace \
--install \
--set cstor.enabled=true \
--set nfs-provisioner.enabled=true \
--timeout 8m0s \
--namespace "$NAMESPACE" \
--values "$values"
--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 \
--values "$values" \
--version "$CHART_VERSION"

kubectl apply -f "$STORAGE_CLASS_MANIFEST"
2 changes: 1 addition & 1 deletion stacks/openebs-nfs-provisioner/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
################################################################################
# chart
################################################################################
STACK="openebs-nfs-provisioner"
STACK="openebs"
NAMESPACE="openebs-nfs-provisioner"

helm uninstall "$STACK" \
Expand Down
18 changes: 12 additions & 6 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 openebs-nfs https://openebs.github.io/dynamic-nfs-provisioner
helm repo add --force-update openebs https://openebs.github.io/openebs
helm repo update > /dev/null

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

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

helm upgrade "$STACK" "$CHART" \
--namespace "$NAMESPACE" \
--values "$values"
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"
1 change: 1 addition & 0 deletions stacks/openebs-nfs-provisioner/values.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# openebs-nfs
nfsStorageClass:
backendStorageClass: "do-block-storage"
enabled: false
Loading