This commit is contained in:
Owen
2026-06-12 14:44:45 -07:00
parent 5a8a48f9bf
commit 3fd5c98def
3 changed files with 50 additions and 5 deletions
@@ -71,7 +71,10 @@ export async function applyNewtDockerBlueprint(
let skippedKeys: string[] = [];
try {
const blueprint = processContainerLabels(containers);
// Some Newt clients can report null/undefined containers when Docker
// labels are unavailable. Treat that as an empty blueprint payload.
const safeContainers = Array.isArray(containers) ? containers : [];
const blueprint = processContainerLabels(safeContainers);
logger.debug(
`Received Docker blueprint with ${Object.keys(blueprint["proxy-resources"]).length} proxy, ${Object.keys(blueprint["client-resources"]).length} client resource(s)`