#!/usr/bin/env bash
set -euo pipefail

BASE_DIR="$(cd "$(dirname "$0")" && pwd)"
MANIFESTS="$BASE_DIR/manifests"

echo "🚀 部署 Vaultwarden..."

kubectl apply -f "$MANIFESTS/"

echo "⏳ 等待 Pod 就緒..."
kubectl rollout status deployment/vaultwarden --timeout=120s

echo "✅ Vaultwarden 部署完成"
