1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-08-06 03:15:18 +02:00

Allow setting app descrpitions from docker labels

This commit is contained in:
RichyHBM 2022-02-18 10:03:56 +00:00
parent 76dc3c44c8
commit a909a4fbbf
2 changed files with 3 additions and 0 deletions

View file

@ -91,6 +91,7 @@ const useDocker = async (apps) => {
for (let i = 0; i < labels['flame.name'].split(';').length; i++) { for (let i = 0; i < labels['flame.name'].split(';').length; i++) {
const names = labels['flame.name'].split(';'); const names = labels['flame.name'].split(';');
const urls = labels['flame.url'].split(';'); const urls = labels['flame.url'].split(';');
const description = labels['flame.description'];
let icons = ''; let icons = '';
if ('flame.icon' in labels) { if ('flame.icon' in labels) {
@ -101,6 +102,7 @@ const useDocker = async (apps) => {
name: names[i] || names[0], name: names[i] || names[0],
url: urls[i] || urls[0], url: urls[i] || urls[0],
icon: icons[i] || 'docker', icon: icons[i] || 'docker',
description: description
}); });
} }
} }

View file

@ -42,6 +42,7 @@ const useKubernetes = async (apps) => {
kubernetesApps.push({ kubernetesApps.push({
name: annotations['flame.pawelmalak/name'], name: annotations['flame.pawelmalak/name'],
url: annotations['flame.pawelmalak/url'], url: annotations['flame.pawelmalak/url'],
description: annotations['flame.pawelmalak/description'],
icon: annotations['flame.pawelmalak/icon'] || 'kubernetes', icon: annotations['flame.pawelmalak/icon'] || 'kubernetes',
}); });
} }