diff --git a/web/dashboard/src/api/ingress.js b/web/dashboard/src/api/ingress.js index 7e16e2b2..53ae0786 100644 --- a/web/dashboard/src/api/ingress.js +++ b/web/dashboard/src/api/ingress.js @@ -44,3 +44,6 @@ export function createIngress (cluster_name, namespace, data) { export function updateIngress (cluster_name, namespace, name, data) { return put(`${namespaceIngressUrl(cluster_name, namespace)}/${name}`, data) } +export function listAllIngresses (cluster_name ){ + return get(ingressUrl(cluster_name)) +} \ No newline at end of file diff --git a/web/dashboard/src/business/network/ingresses/ingress-search.vue b/web/dashboard/src/business/network/ingresses/ingress-search.vue new file mode 100644 index 00000000..a45a1fb5 --- /dev/null +++ b/web/dashboard/src/business/network/ingresses/ingress-search.vue @@ -0,0 +1,362 @@ + + + + + + diff --git a/web/dashboard/src/router/modules/network.js b/web/dashboard/src/router/modules/network.js index 624322b7..156bbe26 100644 --- a/web/dashboard/src/router/modules/network.js +++ b/web/dashboard/src/router/modules/network.js @@ -198,6 +198,20 @@ const Network = { activeMenu: "/ingresses" } }, + { + path: "/ingresses/search", + requirePermission: { + apiGroup: "networking.k8s.io", + resource: "ingresses", + verb: "list", + scope:"namespace" + }, + component: () => import("@/business/network/ingresses/ingress-search.vue"), + name: "IngressesSearch", + meta: { + title: "Ingresses Search", + } + }, { path: "/networkpolicies",