mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 21:29:02 +00:00
subscribe to container changes in Caddyfile controller
This commit is contained in:
1 parent
2134f3c1d9
commit
6b80ef9db8
5 files changed
+134
-4
No files matched your search
@@ -184,6 +184,7 @@ func (m *Manager) syncContainersToStore(ctx context.Context) error {
|
||||
}
|
||||
|
||||
// Create or update the current Docker containers in the store.
|
||||
// TODO: update only the changed containers to reduce unnecessary gossip traffic and not trigger other controllers.
|
||||
for _, dc := range containers {
|
||||
c := &api.Container{Container: dc}
|
||||
if err = m.store.CreateOrUpdateContainer(ctx, c, m.machineID); err != nil {
|
||||
|
||||
Reference in new issue
Block a user