-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate off storing
BackendName
in Docker labels (#793)
Instead of storing a label like: - `"dev.plane.backend"`: `"xjbgb03bhfxqgp"` We will now store a label like: - `"dev.plane.backend"`: `"true"` Critically, this allows us to continue relying on `"dev.plane.backend"` as an _identifier_ for plane backends, while deprecating the reliance on that label for carrying the `BackendName`. The only place we relied on the `BackendName` carried by this label was in the events loop, where as it turns out docker already applies a `"name"` attribute to events. Otherwise, introduce some helper functions to idiomatically convert between `ContainerId` and `BackendName`.
- Loading branch information
1 parent
b0621f9
commit 7336dd9
Showing
5 changed files
with
64 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters