- Add comprehensive database migrations (001-024) for schema evolution - Enhance API schema with expanded type definitions and resolvers - Add new middleware: audit logging, rate limiting, MFA enforcement, security, tenant auth - Implement new services: AI optimization, billing, blockchain, compliance, marketplace - Add adapter layer for cloud integrations (Cloudflare, Kubernetes, Proxmox, storage) - Update Crossplane provider with enhanced VM management capabilities - Add comprehensive test suite for API endpoints and services - Update frontend components with improved GraphQL subscriptions and real-time updates - Enhance security configurations and headers (CSP, CORS, etc.) - Update documentation and configuration files - Add new CI/CD workflows and validation scripts - Implement design system improvements and UI enhancements
44 lines
1.2 KiB
Bash
Executable File
44 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
# batch-enhance-all-vms.sh
|
|
# Batch enhance all VM YAML files with Python script
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
|
|
ENHANCE_SCRIPT="$SCRIPT_DIR/enhance-vm-yaml.py"
|
|
|
|
log() {
|
|
echo -e "\033[0;34m[$(date +'%Y-%m-%d %H:%M:%S')]\033[0m $*"
|
|
}
|
|
|
|
log_success() {
|
|
echo -e "\033[0;32m[$(date +'%Y-%m-%d %H:%M:%S')] ✅\033[0m $*"
|
|
}
|
|
|
|
echo "=========================================="
|
|
echo "Batch Enhancing All VM YAML Files"
|
|
echo "=========================================="
|
|
echo ""
|
|
|
|
# Find all VM YAML files (exclude backups and templates if needed)
|
|
VM_FILES=$(find "$PROJECT_ROOT/examples/production" -name "*.yaml" -type f | grep -v ".backup" | sort)
|
|
|
|
TOTAL=$(echo "$VM_FILES" | wc -l)
|
|
log "Found $TOTAL VM YAML files to process"
|
|
echo ""
|
|
|
|
# Process each file
|
|
for file in $VM_FILES; do
|
|
python3 "$ENHANCE_SCRIPT" "$file"
|
|
done
|
|
|
|
echo ""
|
|
echo "=========================================="
|
|
log_success "Batch enhancement complete!"
|
|
echo "=========================================="
|
|
echo ""
|
|
log "Backup files created with .backup extension"
|
|
log "Review changes and remove backups when satisfied"
|
|
|