mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-06 00:22:42 -05:00
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2618
Author: @LunarECL
Created: 3/8/2026
Status: 🔄 Open
Base:
dev← Head:fix-docker-label-partial-validation📝 Commits (1)
90d6178Skip invalid Docker resources instead of failing entire blueprint (#1784)📊 Changes
1 file changed (+72 additions, -7 deletions)
View changed files
📝
server/lib/blueprints/applyNewtDockerBlueprint.ts(+72 -7)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Fixes #1784
If one Docker container had bad labels (like missing a port on a container with no EXPOSE), it would block every other container from updating too. Not great.
Now there's a per-resource pre-validation step in
applyNewtDockerBlueprint.tsthat catches invalid resources and filters them out before they hitapplyBlueprint(). Valid ones still go through the normalConfigSchemavalidation, so cross-resource checks like domain/port/alias uniqueness work the same as before. Invalid ones just get logged with the Zod error path and skipped.Only touched
server/lib/blueprints/applyNewtDockerBlueprint.ts. Everything else (applyBlueprint.ts,types.ts,parseDockerContainers.ts) is unchanged.How to test?
portlabel from one service that has noEXPOSEdirectiveValidation error: Required at "proxy-resources.testservice.targets[0].port"Skipping invalid Docker proxy-resources "testservice": targets.0.port: RequiredRequired`🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.