feat: add runtimeType and customArgs to ResolvedContainerConfig and ConfigMerger

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-12 13:04:21 +02:00
parent 5e28d20e3b
commit f66c8b6d18
2 changed files with 6 additions and 2 deletions

View File

@@ -30,7 +30,9 @@ public final class ConfigMerger {
intVal(appConfig, envConfig, "replicas", 1),
stringVal(appConfig, envConfig, "deploymentStrategy", "blue-green"),
boolVal(appConfig, envConfig, "routeControlEnabled", true),
boolVal(appConfig, envConfig, "replayEnabled", true)
boolVal(appConfig, envConfig, "replayEnabled", true),
stringVal(appConfig, envConfig, "runtimeType", "auto"),
stringVal(appConfig, envConfig, "customArgs", "")
);
}

View File

@@ -19,7 +19,9 @@ public record ResolvedContainerConfig(
int replicas,
String deploymentStrategy,
boolean routeControlEnabled,
boolean replayEnabled
boolean replayEnabled,
String runtimeType,
String customArgs
) {
public long memoryLimitBytes() {
return (long) memoryLimitMb * 1024 * 1024;