Enhancement: add kubernetes support to portainer widget (#5414)

Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Albin Médoc
2025-06-13 09:17:20 +02:00
committed by GitHub
parent 8ce9e57ed8
commit 73aa2018a8
4 changed files with 81 additions and 13 deletions

View File

@@ -367,6 +367,9 @@ export function cleanServiceGroups(groups) {
// opnsense, pfsense
wan,
// portainer
kubernetes,
// prometheusmetric
metrics,
@@ -448,6 +451,9 @@ export function cleanServiceGroups(groups) {
if (type === "unifi") {
if (site) widget.site = site;
}
if (type === "portainer") {
if (kubernetes) widget.kubernetes = !!JSON.parse(kubernetes);
}
if (type === "proxmox") {
if (node) widget.node = node;
}