New enterprise feature

This commit is contained in:
Urtzi Alfaro
2025-11-30 09:12:40 +01:00
parent f9d0eec6ec
commit 972db02f6d
176 changed files with 19741 additions and 1361 deletions

View File

@@ -187,6 +187,7 @@ build_python_service('orchestrator-service', 'orchestrator') # NEW: Sprint 2
build_python_service('ai-insights-service', 'ai_insights') # NEW: AI Insights Platform
build_python_service('alert-processor', 'alert_processor') # Unified Alert Service with enrichment
build_python_service('demo-session-service', 'demo_session')
build_python_service('distribution-service', 'distribution') # NEW: Distribution Service for Enterprise Tier
# =============================================================================
# RESOURCE DEPENDENCIES & ORDERING
@@ -211,6 +212,7 @@ k8s_resource('orchestrator-db', resource_deps=['security-setup'], labels=['datab
k8s_resource('ai-insights-db', resource_deps=['security-setup'], labels=['databases']) # NEW: AI Insights Platform
k8s_resource('alert-processor-db', resource_deps=['security-setup'], labels=['databases']) # Unified Alert Service
k8s_resource('demo-session-db', resource_deps=['security-setup'], labels=['databases'])
k8s_resource('distribution-db', resource_deps=['security-setup'], labels=['databases']) # NEW: Distribution Service
k8s_resource('redis', resource_deps=['security-setup'], labels=['infrastructure'])
k8s_resource('rabbitmq', labels=['infrastructure'])
@@ -300,6 +302,7 @@ k8s_resource('orchestrator-migration', resource_deps=['orchestrator-db'], labels
k8s_resource('ai-insights-migration', resource_deps=['ai-insights-db'], labels=['migrations']) # NEW: AI Insights Platform
k8s_resource('alert-processor-migration', resource_deps=['alert-processor-db'], labels=['migrations'])
k8s_resource('demo-session-migration', resource_deps=['demo-session-db'], labels=['migrations'])
k8s_resource('distribution-migration', resource_deps=['distribution-db'], labels=['migrations']) # NEW: Distribution Service
# =============================================================================
# DEMO INITIALIZATION JOBS
@@ -414,6 +417,39 @@ k8s_resource('demo-seed-purchase-orders',
resource_deps=['procurement-migration', 'demo-seed-tenants'],
labels=['demo-init'])
# Phase 2: Child retail seed jobs (for enterprise demo)
k8s_resource('demo-seed-inventory-retail',
resource_deps=['inventory-migration', 'demo-seed-inventory'],
labels=['demo-init', 'retail'])
k8s_resource('demo-seed-stock-retail',
resource_deps=['inventory-migration', 'demo-seed-inventory-retail'],
labels=['demo-init', 'retail'])
k8s_resource('demo-seed-sales-retail',
resource_deps=['sales-migration', 'demo-seed-stock-retail'],
labels=['demo-init', 'retail'])
k8s_resource('demo-seed-customers-retail',
resource_deps=['orders-migration', 'demo-seed-sales-retail'],
labels=['demo-init', 'retail'])
k8s_resource('demo-seed-pos-retail',
resource_deps=['pos-migration', 'demo-seed-customers-retail'],
labels=['demo-init', 'retail'])
k8s_resource('demo-seed-forecasts-retail',
resource_deps=['forecasting-migration', 'demo-seed-pos-retail'],
labels=['demo-init', 'retail'])
k8s_resource('demo-seed-alerts-retail',
resource_deps=['alert-processor-migration', 'demo-seed-forecasts-retail'],
labels=['demo-init', 'retail'])
k8s_resource('demo-seed-distribution-history',
resource_deps=['distribution-migration', 'demo-seed-alerts-retail'],
labels=['demo-init', 'enterprise'])
# =============================================================================
# SERVICES
@@ -496,6 +532,10 @@ k8s_resource('demo-session-service',
resource_deps=['demo-session-migration', 'redis'],
labels=['services'])
k8s_resource('distribution-service',
resource_deps=['distribution-migration', 'redis', 'rabbitmq'],
labels=['services'])
k8s_resource('nominatim',
labels=['services'])