From 7148579544ed7c7084bf5bd68e3dd6290311c767 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sat, 14 Nov 2026 11:37:16 +1100 Subject: [PATCH] fix(controlplanestore): the container runtime document stores egress_hosts (#1967) --- .../infrastructure/controlplanestore/container_settings.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/infrastructure/controlplanestore/container_settings.go b/internal/infrastructure/controlplanestore/container_settings.go index e82c5215d..752b534df 100644 --- a/internal/infrastructure/controlplanestore/container_settings.go +++ b/internal/infrastructure/controlplanestore/container_settings.go @@ -21,6 +21,7 @@ type containerRuntimePolicies struct { Network string `json:"network"` Runtime string `json:"runtime"` OpenShell config.OpenShellConfig `json:"openshell"` + EgressHosts []string `json:"egress_hosts,omitempty"` } // agentProfile is one named execution environment as the document writes it. @@ -85,7 +86,7 @@ func (p containerRuntimePolicies) settings() config.ContainerConfig { return config.ContainerConfig{ Image: p.Image, MaxConcurrency: p.MaxConcurrency, MaxUptime: p.MaxUptime, VolumeTTL: p.VolumeTTL, PullPolicy: p.PullPolicy, Network: p.Network, - Runtime: p.Runtime, OpenShell: p.OpenShell, + Runtime: p.Runtime, OpenShell: p.OpenShell, EgressHosts: p.EgressHosts, } } @@ -94,7 +95,7 @@ func seedContainerPolicies(cfg config.Config) any { return containerRuntimePolicies{ Image: containers.Image, MaxConcurrency: containers.MaxConcurrency, MaxUptime: containers.MaxUptime, VolumeTTL: containers.VolumeTTL, PullPolicy: containers.PullPolicy, Network: containers.Network, - Runtime: containers.Runtime, OpenShell: containers.OpenShell, + Runtime: containers.Runtime, OpenShell: containers.OpenShell, EgressHosts: containers.EgressHosts, } }