mirror of
https://github.com/gethomepage/homepage.git
synced 2026-01-06 23:42:09 +08:00
Enhancement: add kubernetes support to portainer widget (#5414)
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
@@ -1,14 +1,23 @@
|
||||
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
||||
|
||||
const widget = {
|
||||
api: "{url}/api/endpoints/{env}/{endpoint}",
|
||||
api: "{url}/api/{endpoint}",
|
||||
proxyHandler: credentialedProxyHandler,
|
||||
|
||||
mappings: {
|
||||
"docker/containers/json": {
|
||||
endpoint: "docker/containers/json",
|
||||
"docker/containers": {
|
||||
endpoint: "endpoints/{env}/docker/containers/json",
|
||||
params: ["all"],
|
||||
},
|
||||
"kubernetes/applications": {
|
||||
endpoint: "kubernetes/{env}/applications/count",
|
||||
},
|
||||
"kubernetes/services": {
|
||||
endpoint: "kubernetes/{env}/services/count",
|
||||
},
|
||||
"kubernetes/namespaces": {
|
||||
endpoint: "kubernetes/{env}/namespaces/count",
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user