mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 11:39:36 +02:00
feat: add visibility in labels
This commit is contained in:
parent
446b4095f6
commit
d04781e407
3 changed files with 7 additions and 0 deletions
|
@ -175,6 +175,7 @@ labels:
|
||||||
- flame.url=https://example.com
|
- flame.url=https://example.com
|
||||||
- flame.icon=icon-name # optional, default is "docker"
|
- flame.icon=icon-name # optional, default is "docker"
|
||||||
# - flame.icon=custom to make changes in app. ie: custom icon upload
|
# - flame.icon=custom to make changes in app. ie: custom icon upload
|
||||||
|
- flame.visibility=hidden # optional, if visibility is "hidden" then hide else show, default is "visible"
|
||||||
```
|
```
|
||||||
|
|
||||||
> "Use Docker API" option must be enabled for this to work. You can find it in Settings > Docker
|
> "Use Docker API" option must be enabled for this to work. You can find it in Settings > Docker
|
||||||
|
@ -187,6 +188,7 @@ labels:
|
||||||
- flame.name=First App;Second App
|
- flame.name=First App;Second App
|
||||||
- flame.url=https://example1.com;https://example2.com
|
- flame.url=https://example1.com;https://example2.com
|
||||||
- flame.icon=icon-name1;icon-name2
|
- flame.icon=icon-name1;icon-name2
|
||||||
|
- flame.visibility=hidden;visible
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to use a remote docker host follow this instructions in the host:
|
If you want to use a remote docker host follow this instructions in the host:
|
||||||
|
@ -223,6 +225,7 @@ metadata:
|
||||||
- flame.pawelmalak/name=My container
|
- flame.pawelmalak/name=My container
|
||||||
- flame.pawelmalak/url=https://example.com
|
- flame.pawelmalak/url=https://example.com
|
||||||
- flame.pawelmalak/icon=icon-name # optional, default is "kubernetes"
|
- flame.pawelmalak/icon=icon-name # optional, default is "kubernetes"
|
||||||
|
- flame.pawelmalak/visibility=hidden # optional, if visibility is 'hidden' then hide else show, default is "visible"
|
||||||
```
|
```
|
||||||
|
|
||||||
> "Use Kubernetes Ingress API" option must be enabled for this to work. You can find it in Settings > Docker
|
> "Use Kubernetes Ingress API" option must be enabled for this to work. You can find it in Settings > Docker
|
||||||
|
|
|
@ -97,10 +97,13 @@ const useDocker = async (apps) => {
|
||||||
icons = labels['flame.icon'].split(';');
|
icons = labels['flame.icon'].split(';');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const visibilities = labels['flame.visibility'].split(';');
|
||||||
|
|
||||||
dockerApps.push({
|
dockerApps.push({
|
||||||
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',
|
||||||
|
isPublic: !((visibilities[i] || visibilities[0]) === 'hidden')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,7 @@ const useKubernetes = async (apps) => {
|
||||||
name: annotations['flame.pawelmalak/name'],
|
name: annotations['flame.pawelmalak/name'],
|
||||||
url: annotations['flame.pawelmalak/url'],
|
url: annotations['flame.pawelmalak/url'],
|
||||||
icon: annotations['flame.pawelmalak/icon'] || 'kubernetes',
|
icon: annotations['flame.pawelmalak/icon'] || 'kubernetes',
|
||||||
|
isPublic: !(annotations['flame.pawelmalak/visibility'] === 'hidden')
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue