queryKeys (helmChartSourceQueries/query-keys.ts)

portainer · app/react/kubernetes/helm/helmChartSourceQueries/query-keys.ts · typescript · Zlib
infra, Infra / DevOps

Module exposing: queryKeys

// Source: https://github.com/portainer/portainer | License: Zlib | Copyright 2018 Portainer.io
// Provided via justclaw.it.com; keep this notice with the code.
import { EnvironmentId } from '@/react/portainer/environments/types';
import { UserId } from '@/portainer/users/types';

export const queryKeys = {
  // Environment-scoped Helm queries (following kubernetes pattern)
  base: (environmentId: EnvironmentId) =>
    ['environments', environmentId, 'kubernetes', 'helm'] as const,

  // User's helm repositories/registries
  registries: (userId: UserId) => ['helm', 'registries', userId] as const,

  // Chart repository searches (global, not environment-specific)
  repositories: (chart: string, repo?: string, useCache?: boolean) =>
    ['helm', 'repositories', chart, repo, useCache] as cons

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key