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