fix(controlplanestore): the container runtime document stores egress_hosts (#1967)
This commit is contained in:
1 file changed
+3
-2
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user