mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 19:13:34 +00:00
subscribe to container changes in Caddyfile controller
This commit is contained in:
@@ -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