Skip to content

Commit

Permalink
Add Easegress to marketplace (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
LokiWager authored Sep 18, 2023
1 parent 150cf95 commit 2e484c7
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
35 changes: 35 additions & 0 deletions stacks/easegress/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/sh

set -e

################################################################################
# repo
################################################################################
helm repo add easegress https://megaease.github.io/easegress-helm-charts
helm repo update > /dev/null

################################################################################
# chart
################################################################################
STACK="easegress"
CHART="easegress/easegress"
CHART_VERSION="1.0.0"
NAMESPACE="easegress"

if [ -z "${MP_KUBERNETES}" ]; then
# use local version of values.yml
ROOT_DIR=$(git rev-parse --show-toplevel)
values="$ROOT_DIR/stacks/easegress/values.yml"
else
# use github hosted master version of values.yml
values="https://raw.githubusercontent.com/digitalocean/marketplace-kubernetes/master/stacks/easegress/values.yml"
fi

helm upgrade "$STACK" "$CHART" \
--atomic \
--create-namespace \
--install \
--timeout 8m0s \
--namespace "$NAMESPACE" \
--values "$values" \
--version "$CHART_VERSION"
13 changes: 13 additions & 0 deletions stacks/easegress/uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

set -e

################################################################################
# chart
################################################################################
STACK="easegress"
NAMESPACE="easegress"


helm uninstall "$STACK" \
--namespace "$NAMESPACE"
29 changes: 29 additions & 0 deletions stacks/easegress/upgrade.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh

set -e

################################################################################
# repo
################################################################################
helm repo add easegress https://megaease.github.io/easegress-helm-charts
helm repo update > /dev/null

################################################################################
# chart
################################################################################
STACK="easegress"
CHART="easegress/easegress"
NAMESPACE="easegress"

if [ -z "${MP_KUBERNETES}" ]; then
# use local version of values.yml
ROOT_DIR=$(git rev-parse --show-toplevel)
values="$ROOT_DIR/stacks/easegress/values.yml"
else
# use github hosted master version of values.yml
values="https://raw.githubusercontent.com/digitalocean/marketplace-kubernetes/master/stacks/easegress/values.yml"
fi

helm upgrade "$STACK" "$CHART" \
--namespace "$NAMESPACE" \
--values "$values" \
1 change: 1 addition & 0 deletions stacks/easegress/values.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# megaease/easegress

0 comments on commit 2e484c7

Please sign in to comment.