2025-05-19 21:38:12 +02:00
|
|
|
#!/bin/sh -x
|
2022-03-30 19:28:59 +02:00
|
|
|
|
2025-05-19 21:38:12 +02:00
|
|
|
kubectl get namespace stackspout 2>/dev/null ||
|
|
|
|
kubectl create namespace stackspout
|
2022-04-13 07:46:20 +01:00
|
|
|
|
2022-07-06 11:25:31 +01:00
|
|
|
echo "Creating / Updating gitRepository stackspout"
|
2022-04-13 07:46:20 +01:00
|
|
|
flux create source git stackspout \
|
2025-05-19 21:38:12 +02:00
|
|
|
--url=https://open.greenhost.net/xeruf/stackspout.git \
|
2022-03-30 19:28:59 +02:00
|
|
|
--branch=main \
|
2022-07-03 18:08:12 +01:00
|
|
|
--interval=5m
|
2025-05-19 21:38:12 +02:00
|
|
|
# Don't depend on a repo hosted by this cluster
|
|
|
|
#url=https://forge.ftt.gmbh/polygon/stackspout.git \
|
2022-03-30 19:28:59 +02:00
|
|
|
|
2022-07-06 11:25:31 +01:00
|
|
|
echo "Creating / Updating kustomization stackspout"
|
2022-04-13 07:46:20 +01:00
|
|
|
flux create kustomization stackspout \
|
|
|
|
--source=GitRepository/stackspout \
|
2024-01-23 22:50:41 +01:00
|
|
|
--path="./infrastructure/kustomizations/" \
|
2022-03-30 19:28:59 +02:00
|
|
|
--prune=true \
|
2022-07-12 22:45:06 +01:00
|
|
|
--interval=5m
|