maybe a bit more universal way of setting root directory

This commit is contained in:
2026-03-17 15:35:21 +00:00
parent 10a66188e3
commit 86451cf5da

View File

@@ -1,6 +1,7 @@
SCRIPT_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)
ROOT=$(realpath "$SCRIPT_DIR/..")
set -e
cd "$(dirname -- "$0")" || exit
SCRIPT_DIR="$(pwd -P)"
ROOT="$(realpath "$SCRIPT_DIR/..")"
kind create cluster --config "$SCRIPT_DIR/config.yaml"
kubectl apply --server-side -f https://github.com/kubernetes-sigs/gateway-api/releases/download/v1.4.0/standard-install.yaml
kubectl apply -f "$SCRIPT_DIR/manifests"