All checks were successful
Terraform Plan / Terraform Plan (push) Successful in 17s
Introduce a clean orchestration layer in nixos/kubeadm/bootstrap/controller.py and slim rebuild-and-bootstrap.sh into a thin wrapper. The controller now owns preflight, rebuild, init, CNI install, join, and verify stages with persisted checkpoints on cp-1 plus a local state copy for CI debugging.
15 lines
461 B
Bash
Executable File
15 lines
461 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
INVENTORY_FILE="${1:-$SCRIPT_DIR/inventory.env}"
|
|
CONTROLLER="$SCRIPT_DIR/../bootstrap/controller.py"
|
|
|
|
if [ ! -f "$INVENTORY_FILE" ]; then
|
|
echo "Missing inventory file: $INVENTORY_FILE"
|
|
echo "Copy $SCRIPT_DIR/inventory.example.env to $SCRIPT_DIR/inventory.env and edit node mappings."
|
|
exit 1
|
|
fi
|
|
|
|
python3 "$CONTROLLER" reconcile --inventory "$INVENTORY_FILE"
|