feat(deploy): add scripts for k3d installation and SSH tunnel setup

This commit is contained in:
Janis Eccarius
2026-05-30 14:13:58 +02:00
parent dcdcaff3b0
commit cb28dc88b1
4 changed files with 9215 additions and 6 deletions
+9 -6
View File
@@ -17,13 +17,16 @@ generate_flux_manifests() {
echo "----------------------------------------"
GOTK="$REPO_ROOT/htwg-1/flux-system/gotk-components.yaml"
if [[ -f "$GOTK" ]]; then
echo "✅ gotk-components.yaml already exists, skipping generation."
if [[ -s "$GOTK" ]]; then
echo "✅ gotk-components.yaml already exists, skipping download."
else
echo "🚀 Generating FluxCD controller manifests..."
flux install --export > "$GOTK"
echo "✅ Generated $GOTK"
echo "⚠️ Commit this file to the repository before continuing."
echo "🚀 Downloading FluxCD controller manifests..."
FLUX_VERSION=$(curl -Ls https://api.github.com/repos/fluxcd/flux2/releases/latest \
| grep '"tag_name"' | cut -d'"' -f4)
curl -Lo "$GOTK" \
"https://github.com/fluxcd/flux2/releases/download/${FLUX_VERSION}/install.yaml"
echo "✅ Downloaded FluxCD ${FLUX_VERSION}$GOTK"
echo "⚠️ Commit this file to the repository."
read -rp "Press Enter after committing gotk-components.yaml..."
fi
}