1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-24 15:59:41 +02:00

fix(ingress): handle system resources [EE-4775] (#9972)

* fix(ingress): handle system resources [EE-4775]
This commit is contained in:
Ali 2023-08-23 09:13:35 +12:00 committed by GitHub
parent 5586910e9d
commit 1e61f7e305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 105 additions and 60 deletions

View file

@ -55,7 +55,8 @@ export function useIngress(
export function useIngresses(
environmentId: EnvironmentId,
namespaces?: string[]
namespaces?: string[],
options?: { autoRefreshRate?: number }
) {
return useQuery(
[
@ -117,6 +118,9 @@ export function useIngresses(
{
enabled: !!namespaces?.length,
...withError('Unable to get ingresses'),
refetchInterval() {
return options?.autoRefreshRate ?? false;
},
}
);
}