View Mermaid source
sequenceDiagram
participant User as API client
participant API as API Server
participant DB as PostgreSQL
participant W as Watcher
participant R as Gateway Reconciler
participant K as ManagedCluster K8s API
participant PG as Gateway PostgreSQL server
User->>API: POST /gateways
API->>DB: Persist desired state
DB-->>API: Gateway record
API-->>W: gRPC Watch event
W->>R: Dispatch ADDED/MODIFIED
R->>K: Ensure namespace + PKI
R->>PG: CREATE ROLE + CREATE DATABASE gw_id (verify-full)
R->>K: Ensure DB credentials Secret (sslmode=require, no CA)
R->>K: Ensure Deployment + Service + RBAC
R->>K: Ensure exposure resources
K-->>R: Observe readiness
R->>API: PATCH status + route address
API-->>User: Gateway is Running
Edit this diagram in Craft Mermaid