Delta Deployments
Delta Deployments are a core concept in Diverge. Rather than cloning your entire microservice architecture, Diverge identifies which specific services have changed in your Merge Request and deploys only those modified services.
How it works
Section titled “How it works”- Dependency Analysis: Diverge checks your Git diff against configured paths.
- Selective Deployment: Only the modified services are deployed to the cluster.
- Traffic Routing: Using header-based routing, traffic intended for the preview environment is routed to the new, delta deployments. Any requests to unmodified services gracefully fall back to your shared baseline environment.
This approach significantly reduces deployment time and cluster resource usage.
Baseline Drift Detection & Auto-Refresh
Section titled “Baseline Drift Detection & Auto-Refresh”Because delta previews rely on shared baseline services and baseline ConfigMap/Secret configurations, changes to the baseline cluster while a PR is open can cause subtle configuration drift.
Diverge automatically computes a deterministic SHA-256 fingerprint (divergedev.com/baseline-fingerprint) over matched baseline Deployment pod templates (Containers, InitContainers, env, envFrom) and referenced ConfigMaps/Secrets (including projected volume ConfigMap/Secret sources), watching baseline Deployment and ConfigMap updates in real time:
divergedev.com/drift-policy: "warn"(default): Sets conditionBaselineDriftDetected=True(Reason: BaselineUpdated), emits aBaselineDriftDetectedWarning event, and surfaces⚠️ driftindiverge topfor active environments (💤 hibernatedtakes display precedence while an environment is scaled to zero).divergedev.com/drift-policy: "sync": Automatically re-runsDeployer.Deploy, injects the updateddivergedev.com/baseline-fingerprintinto preview pod templates to trigger a rolling restart, and emits aBaselineSyncedNormal event.divergedev.com/drift-policy: "ignore": Disables baseline drift checks for the environment.
