This commit is contained in:
Danijel Simeunovic
2026-03-19 15:42:41 +01:00
parent a681a9ae81
commit ac0f464b2a
2 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,7 @@ CLUSTER="${1:?Usage: ./bootstrap.sh <cluster> (eu|us)}"
echo "running $0 for cluster: ${CLUSTER}..." echo "running $0 for cluster: ${CLUSTER}..."
# Source cluster config # Source cluster config
eval $(yq e 'to_entries | .[] | "export " + .key + "=\"" + .value + "\""' "clusters/${CLUSTER}.yaml") eval $(yq -r 'to_entries[] | "export \(.key)=\"\(.value)\""' "clusters/${CLUSTER}.yaml")
echo "Bootstrapping cluster: ${clusterName} (${CLUSTER})..." echo "Bootstrapping cluster: ${clusterName} (${CLUSTER})..."
@@ -27,8 +27,8 @@ Bootstrap()
Github() Github()
{ {
echo "Installing secret..." echo "Installing secret..."
kubectl apply -f private/github.yaml kubectl apply -f private/github-${CLUSTER}.yaml
kubectl apply -f private/main.key kubectl apply -f private/main-${CLUSTER}.key
} }
############################################################ ############################################################
@@ -49,4 +49,4 @@ ArgoCd()
kubectl apply -f "_app-of-apps-${CLUSTER}.yaml" -n argocd kubectl apply -f "_app-of-apps-${CLUSTER}.yaml" -n argocd
} }
Bootstrap # Bootstrap

View File

@@ -1,4 +1,4 @@
clusterName: dev-fd-eu-no-svg1 clusterName: dev-fd-no-svg1
domain: forteapps.net domain: forteapps.net
argocdDomain: argocd.127.0.0.1.nip.io argocdDomain: argocd.127.0.0.1.nip.io
grafanaDomain: grafana.forteapps.net grafanaDomain: grafana.forteapps.net