stackspout/install.sh

27 lines
741 B
Bash
Raw Normal View History

#!/usr/bin/env bash
kubectl get namespace stackspout 2>/dev/null || kubectl create namespace stackspout
2022-07-06 10:25:31 +00:00
echo "Creating / Updating gitRepository stackspout"
flux create source git stackspout \
--url=https://forge.ftt.gmbh/polygon/stackspout.git \
--branch=main \
2022-07-03 17:08:12 +00:00
--interval=5m
2022-07-06 10:25:31 +00:00
echo "Creating / Updating kustomization stackspout"
flux create kustomization stackspout \
--source=GitRepository/stackspout \
2024-01-23 21:50:41 +00:00
--path="./infrastructure/kustomizations/" \
--prune=true \
--interval=5m
# Required for oversized truecharts repo
export GITEA_TOKEN=$(pass business/ftt/stackspout)
flux bootstrap gitea \
--token-auth \
--branch=main \
--hostname=forge.ftt.gmbh \
--owner=polygon \
--repository=stackspout \
--path=util/flux