mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 05:49:40 +02:00
21 lines
463 B
TypeScript
21 lines
463 B
TypeScript
|
import { compact } from 'lodash';
|
||
|
|
||
|
export const queryKeys = {
|
||
|
list: (environmentId: number, options?: { withResourceQuota?: boolean }) =>
|
||
|
compact([
|
||
|
'environments',
|
||
|
environmentId,
|
||
|
'kubernetes',
|
||
|
'namespaces',
|
||
|
options?.withResourceQuota,
|
||
|
]),
|
||
|
namespace: (environmentId: number, namespace: string) =>
|
||
|
[
|
||
|
'environments',
|
||
|
environmentId,
|
||
|
'kubernetes',
|
||
|
'namespaces',
|
||
|
namespace,
|
||
|
] as const,
|
||
|
};
|