Documentation
¶
Overview ¶
Package reconcile squares a Docker engine's skiff containers with the local registry.
Both the panel's startup reaper and `skiff sync` used to delete every skiff container missing from the registry. That is only safe if the registry is complete, and it wasn't: a CLI deploy to a server over SSH recorded the app in the deployer's registry, never the server's, so the server's next panel restart deleted the live site. The policy here never deletes the only running instance of an app — it adopts it back into the registry instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plan ¶
type Plan struct {
// Remove holds stopped leftovers and superseded versions of apps that still
// have a running, registered replica.
Remove []string
// Adopt maps an app to running containers that should be (re)registered
// rather than deleted: its registry entry is missing or points only at
// containers that are gone or stopped.
Adopt map[string][]docker.ContainerInfo
}
Plan is what reconciling should do. Containers in neither list are left alone.