Site resources for the blueprint

This commit is contained in:
Owen 2025-09-14 15:57:41 -07:00
parent 8929f389f4
commit 58c04fd196
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
13 changed files with 520 additions and 71 deletions

View file

@ -66,9 +66,9 @@ export function processContainerLabels(containers: Container[]): {
const resourceLabels: DockerLabels = {};
// Filter labels that start with "pangolin.resources."
// Filter labels that start with "pangolin.proxy-resources."
Object.entries(container.labels).forEach(([key, value]) => {
if (key.startsWith("pangolin.resources.")) {
if (key.startsWith("pangolin.proxy-resources.") || key.startsWith("pangolin.client-resources.")) {
// remove the pangolin. prefix
const strippedKey = key.replace("pangolin.", "");
resourceLabels[strippedKey] = value;