install: prune installation steps

This commit is contained in:
xeruf 2025-05-19 21:38:12 +02:00
parent 2e274e6084
commit 7186e122ed

View file

@ -1,12 +1,15 @@
#!/usr/bin/env bash
#!/bin/sh -x
kubectl get namespace stackspout 2>/dev/null || kubectl create namespace stackspout
kubectl get namespace stackspout 2>/dev/null ||
kubectl create namespace stackspout
echo "Creating / Updating gitRepository stackspout"
flux create source git stackspout \
--url=https://forge.ftt.gmbh/polygon/stackspout.git \
--url=https://open.greenhost.net/xeruf/stackspout.git \
--branch=main \
--interval=5m
# Don't depend on a repo hosted by this cluster
#url=https://forge.ftt.gmbh/polygon/stackspout.git \
echo "Creating / Updating kustomization stackspout"
flux create kustomization stackspout \
@ -14,13 +17,3 @@ flux create kustomization stackspout \
--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