feat: host grouping with bug fixes and hardening (#4662)

Co-authored-by: Mikhail Gorbachev <31391617+nomah4@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Amir Raminfar
2026-04-27 12:57:48 -07:00
committed by GitHub
parent 2478cd16d6
commit 84c4d1144f
37 changed files with 525 additions and 39 deletions
+6 -1
View File
@@ -94,6 +94,11 @@ func FromProto(c *pb.Container) Container {
labels = make(map[string]string)
}
env := c.Env
if env == nil {
env = []string{}
}
return Container{
ID: c.Id,
Name: c.Name,
@@ -112,7 +117,7 @@ func FromProto(c *pb.Container) Container {
MemoryLimit: c.MemoryLimit,
CPULimit: c.CpuLimit,
FullyLoaded: c.FullyLoaded,
Env: c.Env,
Env: env,
Ports: c.Ports,
Mounts: c.Mounts,
RestartPolicy: c.RestartPolicy,