mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(namespace): migrate create ns to react [EE-2226] (#10377)
This commit is contained in:
parent
31bcba96c6
commit
7218eb0892
83 changed files with 1869 additions and 358 deletions
|
@ -34,11 +34,13 @@ export async function getIngresses(
|
|||
|
||||
export async function getIngressControllers(
|
||||
environmentId: EnvironmentId,
|
||||
namespace: string
|
||||
namespace: string,
|
||||
allowedOnly?: boolean
|
||||
) {
|
||||
try {
|
||||
const { data: ingresscontrollers } = await axios.get<IngressController[]>(
|
||||
`kubernetes/${environmentId}/namespaces/${namespace}/ingresscontrollers`
|
||||
`kubernetes/${environmentId}/namespaces/${namespace}/ingresscontrollers`,
|
||||
allowedOnly ? { params: { allowedOnly: true } } : undefined
|
||||
);
|
||||
return ingresscontrollers;
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue