1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-20 05:49:40 +02:00
portainer/app/react/kubernetes/namespaces/queries/queryKeys.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
463 B
TypeScript
Raw Normal View History

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,
};