46 lines
1.5 KiB
Bash
Executable File
46 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Phase 10: Backend Services Deployment
|
|
# Validate backend manifests and service URLs for the Sankofa runtime.
|
|
#
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "${SCRIPT_DIR}/config.sh"
|
|
|
|
log_info "=========================================="
|
|
log_info "Phase 10: Backend Services Deployment"
|
|
log_info "=========================================="
|
|
|
|
log_step "10.1 Validating backend manifests..."
|
|
for service in "${SERVICES[@]}"; do
|
|
SERVICE_DIR="${K8S_DIR}/base/${service}"
|
|
if [ ! -d "${SERVICE_DIR}" ]; then
|
|
log_warning "Backend manifest directory not found for ${service}: ${SERVICE_DIR}"
|
|
continue
|
|
fi
|
|
|
|
if command -v kubectl >/dev/null; then
|
|
kubectl apply --dry-run=client -f "${SERVICE_DIR}" >/dev/null \
|
|
&& log_success "${service} manifests render cleanly" \
|
|
|| log_warning "${service} manifests failed dry-run validation"
|
|
else
|
|
log_info "kubectl not installed; skipping manifest validation for ${service}"
|
|
fi
|
|
done
|
|
|
|
log_step "10.2 Reporting expected service URLs..."
|
|
for service in "${SERVICES[@]}"; do
|
|
log_info "${service} expected port: ${SERVICE_PORTS[$service]}"
|
|
done
|
|
|
|
log_info "Backend deployment remains environment-specific. Use the Phoenix edge / CT flow for the public frontend and connect backend services through your chosen runtime separately."
|
|
|
|
# Save state
|
|
save_state "phase10" "complete"
|
|
|
|
log_success "=========================================="
|
|
log_success "Phase 10: Backend Services - COMPLETE"
|
|
log_success "=========================================="
|