Skip to content

Commit

Permalink
feat: add flipt k8s stack (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored Oct 25, 2023
1 parent e59e846 commit e12f790
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 0 deletions.
33 changes: 33 additions & 0 deletions stacks/flipt/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/sh

set -e

################################################################################
# repo
################################################################################
helm repo add flipt https://helm.flipt.io
helm repo update > /dev/null

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

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

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

set -e

################################################################################
# chart
################################################################################
STACK="flipt"
NAMESPACE="flipt"


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

set -e

################################################################################
# repo
################################################################################
helm repo add flipt https://helm.flipt.io
helm repo update > /dev/null

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

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

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

0 comments on commit e12f790

Please sign in to comment.