From d580b6e90ccd0d31e78eb4f228594f06d9d51dd9 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Wed, 22 Apr 2026 21:26:30 +0200 Subject: [PATCH] core(deploy): add DeploymentConfigSnapshot record Co-Authored-By: Claude Sonnet 4.6 --- .../runtime/DeploymentConfigSnapshot.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cameleer-server-core/src/main/java/com/cameleer/server/core/runtime/DeploymentConfigSnapshot.java diff --git a/cameleer-server-core/src/main/java/com/cameleer/server/core/runtime/DeploymentConfigSnapshot.java b/cameleer-server-core/src/main/java/com/cameleer/server/core/runtime/DeploymentConfigSnapshot.java new file mode 100644 index 00000000..c7d0db47 --- /dev/null +++ b/cameleer-server-core/src/main/java/com/cameleer/server/core/runtime/DeploymentConfigSnapshot.java @@ -0,0 +1,19 @@ +package com.cameleer.server.core.runtime; + +import com.cameleer.common.model.ApplicationConfig; + +import java.util.Map; + +/** + * Snapshot of the config that was deployed, captured at the moment a deployment + * transitions to RUNNING. Used for "last known good" restore (checkpoints) and + * for dirty-state detection on the deployment page. + * + *

This is persisted as JSONB in {@code deployments.deployed_config_snapshot}.

+ */ +public record DeploymentConfigSnapshot( + String jarVersionId, + ApplicationConfig agentConfig, + Map containerConfig +) { +}