- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control. - Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities. - Created .gitmodules to include OpenZeppelin contracts as a submodule. - Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment. - Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks. - Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring. - Created scripts for resource import and usage validation across non-US regions. - Added tests for CCIP error handling and integration to ensure robust functionality. - Included various new files and directories for the orchestration portal and deployment scripts.
48 lines
1.4 KiB
Bash
Executable File
48 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Phase 2: Deploy Kubernetes Resources
|
|
|
|
set -e
|
|
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
# Color codes
|
|
|
|
echo "==================================================================="
|
|
echo " PHASE 2: KUBERNETES RESOURCES DEPLOYMENT"
|
|
echo "==================================================================="
|
|
|
|
# Check kubectl access
|
|
if ! kubectl cluster-info &> /dev/null; then
|
|
log_error "❌ Kubernetes cluster not accessible"
|
|
echo " Configure with: az aks get-credentials --resource-group <rg> --name <cluster>"
|
|
exit 1
|
|
fi
|
|
|
|
CLUSTER=$(kubectl config current-context 2>/dev/null || echo "Unknown")
|
|
log_success "✅ Connected to cluster: $CLUSTER"
|
|
|
|
# Create namespace
|
|
log_info "Creating namespace..."
|
|
if kubectl get namespace besu-network &> /dev/null; then
|
|
log_success "✅ Namespace 'besu-network' already exists"
|
|
else
|
|
kubectl create namespace besu-network
|
|
log_success "✅ Namespace 'besu-network' created"
|
|
fi
|
|
|
|
# Apply base resources
|
|
log_info "Applying base Kubernetes resources..."
|
|
if [ -d "k8s/base" ]; then
|
|
kubectl apply -k k8s/base
|
|
log_success "✅ Base resources applied"
|
|
else
|
|
log_warn "⚠️ k8s/base directory not found"
|
|
fi
|
|
|
|
# Wait for resources
|
|
log_info "Waiting for resources to be ready..."
|
|
kubectl wait --for=condition=ready pod --all -n besu-network --timeout=60s 2>/dev/null || echo "No pods to wait for yet"
|
|
|
|
log_success "✅ Phase 2 complete!"
|
|
echo "Next: Deploy Besu network components"
|