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}..."
# 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})..."
@@ -27,8 +27,8 @@ Bootstrap()
Github()
{
echo "Installing secret..."
kubectl apply -f private/github.yaml
kubectl apply -f private/main.key
kubectl apply -f private/github-${CLUSTER}.yaml
kubectl apply -f private/main-${CLUSTER}.key
}
############################################################
@@ -49,4 +49,4 @@ ArgoCd()
kubectl apply -f "_app-of-apps-${CLUSTER}.yaml" -n argocd
}
Bootstrap
# Bootstrap