From 40f239121fa8bf20565e7aba603c08731e2fe595 Mon Sep 17 00:00:00 2001 From: Andres Morey Date: Tue, 21 May 2024 13:18:50 +0300 Subject: [PATCH] changes order of source string, adds support for pods wildcard source (#93) --- frontend/package.json | 2 +- frontend/pnpm-lock.yaml | 38 ++++---- .../src/lib/console/logging-resources.tsx | 92 +++++++++++-------- frontend/src/lib/graphql/__generated__/gql.ts | 10 ++ .../src/lib/graphql/__generated__/graphql.ts | 18 ++++ frontend/src/lib/graphql/ops.ts | 25 +++++ frontend/src/pages/home.tsx | 2 +- 7 files changed, 127 insertions(+), 60 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index ad1aa8bb..7ddb39db 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -30,7 +30,6 @@ "react-day-picker": "^8.10.1", "react-dom": "^18.3.1", "react-hot-toast": "^2.4.1", - "react-router-dom": "^6.23.0", "react-timeago": "^7.2.0", "react-virtualized-auto-sizer": "^1.0.24", "react-window": "^1.8.10", @@ -69,6 +68,7 @@ "history": "^5.3.0", "jsdom": "^24.0.0", "postcss": "^8.4.38", + "react-router-dom": "^6.23.1", "rollup-plugin-visualizer": "^5.12.0", "tailwindcss": "^3.4.3", "typescript": "^5.4.5", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index b5bdf3b8..4947e038 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -59,9 +59,6 @@ importers: react-hot-toast: specifier: ^2.4.1 version: 2.4.1(csstype@3.1.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) - react-router-dom: - specifier: ^6.23.0 - version: 6.23.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1) react-timeago: specifier: ^7.2.0 version: 7.2.0(react@18.3.1) @@ -171,6 +168,9 @@ importers: postcss: specifier: ^8.4.38 version: 8.4.38 + react-router-dom: + specifier: ^6.23.1 + version: 6.23.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) rollup-plugin-visualizer: specifier: ^5.12.0 version: 5.12.0(rollup@4.17.2) @@ -224,8 +224,8 @@ packages: subscriptions-transport-ws: optional: true - '@apollo/client@3.10.3': - resolution: {integrity: sha512-4EIgZnFmRO1laWv3NCxlVIxcvimG63djuAXvyXhpQH3wkNMv9SykrasKRN08+z+cn/fVisBOLmkSRdyNyP9f4A==} + '@apollo/client@3.10.4': + resolution: {integrity: sha512-51gk0xOwN6Ls1EbTG5svFva1kdm2APHYTzmFhaAdvUQoJFDxfc0UwQgDxGptzH84vkPlo1qunY1FuboyF9LI3Q==} peerDependencies: graphql: ^15.0.0 || ^16.0.0 graphql-ws: ^5.5.5 @@ -1298,8 +1298,8 @@ packages: peerDependencies: react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 - '@remix-run/router@1.16.0': - resolution: {integrity: sha512-Quz1KOffeEf/zwkCBM3kBtH4ZoZ+pT3xIXBG4PPW/XFtDP7EGhtTiC2+gpL9GnR7+Qdet5Oa6cYSvwKYg6kN9Q==} + '@remix-run/router@1.16.1': + resolution: {integrity: sha512-es2g3dq6Nb07iFxGk5GuHN20RwBZOsuDQN7izWIisUcv9r+d2C5jQxqmgkdebXgReWfiyUabcki6Fg77mSNrig==} engines: {node: '>=14.0.0'} '@repeaterjs/repeater@3.0.5': @@ -3588,15 +3588,15 @@ packages: '@types/react': optional: true - react-router-dom@6.23.0: - resolution: {integrity: sha512-Q9YaSYvubwgbal2c9DJKfx6hTNoBp3iJDsl+Duva/DwxoJH+OTXkxGpql4iUK2sla/8z4RpjAm6EWx1qUDuopQ==} + react-router-dom@6.23.1: + resolution: {integrity: sha512-utP+K+aSTtEdbWpC+4gxhdlPFwuEfDKq8ZrPFU65bbRJY+l706qjR7yaidBpo3MSeA/fzwbXWbKBI6ftOnP3OQ==} engines: {node: '>=14.0.0'} peerDependencies: react: '>=16.8' react-dom: '>=16.8' - react-router@6.23.0: - resolution: {integrity: sha512-wPMZ8S2TuPadH0sF5irFGjkNLIcRvOSaEe7v+JER8508dyJumm6XZB1u5kztlX0RVq6AzRVndzqcUh6sFIauzA==} + react-router@6.23.1: + resolution: {integrity: sha512-fzcOaRF69uvqbbM7OhvQyBTFDVrrGlsFdS3AL+1KfIBtGETibHzi3FkoTRyiDJnWNc2VxrfvR+657ROHjaNjqQ==} engines: {node: '>=14.0.0'} peerDependencies: react: '>=16.8' @@ -4453,7 +4453,7 @@ snapshots: transitivePeerDependencies: - '@types/react' - '@apollo/client@3.10.3(@types/react@18.3.1)(graphql-ws@5.16.0(graphql@16.8.1))(graphql@16.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@apollo/client@3.10.4(@types/react@18.3.1)(graphql-ws@5.16.0(graphql@16.8.1))(graphql@16.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@graphql-typed-document-node/core': 3.2.0(graphql@16.8.1) '@wry/caches': 1.0.1 @@ -4479,7 +4479,7 @@ snapshots: '@apollo/react-testing@4.0.0(@types/react@18.3.1)(graphql-ws@5.16.0(graphql@16.8.1))(graphql@16.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: - '@apollo/client': 3.10.3(@types/react@18.3.1)(graphql-ws@5.16.0(graphql@16.8.1))(graphql@16.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@apollo/client': 3.10.4(@types/react@18.3.1)(graphql-ws@5.16.0(graphql@16.8.1))(graphql@16.8.1)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) transitivePeerDependencies: - '@types/react' - graphql @@ -5772,7 +5772,7 @@ snapshots: '@swc/helpers': 0.5.11 react: 18.3.1 - '@remix-run/router@1.16.0': {} + '@remix-run/router@1.16.1': {} '@repeaterjs/repeater@3.0.5': {} @@ -8340,16 +8340,16 @@ snapshots: optionalDependencies: '@types/react': 18.3.1 - react-router-dom@6.23.0(react-dom@18.3.1(react@18.3.1))(react@18.3.1): + react-router-dom@6.23.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1): dependencies: - '@remix-run/router': 1.16.0 + '@remix-run/router': 1.16.1 react: 18.3.1 react-dom: 18.3.1(react@18.3.1) - react-router: 6.23.0(react@18.3.1) + react-router: 6.23.1(react@18.3.1) - react-router@6.23.0(react@18.3.1): + react-router@6.23.1(react@18.3.1): dependencies: - '@remix-run/router': 1.16.0 + '@remix-run/router': 1.16.1 react: 18.3.1 react-style-singleton@2.2.1(@types/react@18.3.1)(react@18.3.1): diff --git a/frontend/src/lib/console/logging-resources.tsx b/frontend/src/lib/console/logging-resources.tsx index 20e3bea0..2643dada 100644 --- a/frontend/src/lib/console/logging-resources.tsx +++ b/frontend/src/lib/console/logging-resources.tsx @@ -32,6 +32,12 @@ export type Node = ExtractQueryType; export type Pod = ExtractQueryType; +type LoadWorkloadProps = { + namespace: string; + name: string; + sourcePath: string; +}; + class WorkloadResponse { loading: boolean = false; @@ -182,16 +188,13 @@ const LoadPodsForLabels = ({ * Fetch a CronJob workload and associated streams */ -const LoadCronJobWorkload = ({ sourcePath }: { sourcePath: string }) => { - const parts = sourcePath.split('/'); - const [namespace, name] = [parts[1], parts[2]]; - +const LoadCronJobWorkload = ({ namespace, name, sourcePath }: LoadWorkloadProps) => { const { loading, error, data } = useGetQueryWithSubscription({ query: ops.CONSOLE_LOGGING_RESOURCES_CRONJOB_GET, subscription: ops.CONSOLE_LOGGING_RESOURCES_CRONJOB_WATCH, queryDataKey: 'batchV1CronJobsGet', subscriptionDataKey: 'batchV1CronJobsWatch', - skip: parts.length < 2, + skip: (!namespace || !name), variables: { namespace, name }, }); @@ -234,14 +237,11 @@ const LoadCronJobWorkload = ({ sourcePath }: { sourcePath: string }) => { * Fetch a DaemonSet workload and associated streams */ -const LoadDaemonSetWorkload = ({ sourcePath }: { sourcePath: string }) => { - const parts = sourcePath.split('/'); - const [namespace, name] = [parts[1], parts[2]]; - +const LoadDaemonSetWorkload = ({ namespace, name, sourcePath }: LoadWorkloadProps) => { const { loading, error, data } = useGetQueryWithSubscription({ query: ops.CONSOLE_LOGGING_RESOURCES_DAEMONSET_GET, subscription: ops.CONSOLE_LOGGING_RESOURCES_DAEMONSET_WATCH, - skip: parts.length < 2, + skip: (!namespace || !name), variables: { namespace, name }, queryDataKey: 'appsV1DaemonSetsGet', subscriptionDataKey: 'appsV1DaemonSetsWatch', @@ -268,14 +268,11 @@ const LoadDaemonSetWorkload = ({ sourcePath }: { sourcePath: string }) => { * Fetch a Deployment workload and associated streams */ -const LoadDeploymentWorkload = ({ sourcePath }: { sourcePath: string }) => { - const parts = sourcePath.split('/'); - const [namespace, name] = [parts[1], parts[2]]; - +const LoadDeploymentWorkload = ({ namespace, name, sourcePath }: LoadWorkloadProps) => { const { loading, error, data } = useGetQueryWithSubscription({ query: ops.CONSOLE_LOGGING_RESOURCES_DEPLOYMENT_GET, subscription: ops.CONSOLE_LOGGING_RESOURCES_DEPLOYMENT_WATCH, - skip: parts.length < 2, + skip: (!namespace || !name), variables: { namespace, name }, queryDataKey: 'appsV1DeploymentsGet', subscriptionDataKey: 'appsV1DeploymentsWatch', @@ -302,14 +299,11 @@ const LoadDeploymentWorkload = ({ sourcePath }: { sourcePath: string }) => { * Fetch a Job workload and associated streams */ -const LoadJobWorkload = ({ sourcePath }: { sourcePath: string }) => { - const parts = sourcePath.split('/'); - const [namespace, name] = [parts[1], parts[2]]; - +const LoadJobWorkload = ({ namespace, name, sourcePath }: LoadWorkloadProps) => { const { loading, error, data } = useGetQueryWithSubscription({ query: ops.CONSOLE_LOGGING_RESOURCES_JOB_GET, subscription: ops.CONSOLE_LOGGING_RESOURCES_JOB_WATCH, - skip: parts.length < 2, + skip: (!namespace || !name), variables: { namespace, name }, queryDataKey: 'batchV1JobsGet', subscriptionDataKey: 'batchV1JobsWatch', @@ -336,14 +330,11 @@ const LoadJobWorkload = ({ sourcePath }: { sourcePath: string }) => { * Fetch a Pod workload and associated streams */ -const LoadPodWorkload = ({ sourcePath }: { sourcePath: string }) => { - const parts = sourcePath.split('/'); - const [namespace, name] = [parts[1], parts[2]]; - +const LoadPodWorkload = ({ namespace, name, sourcePath }: LoadWorkloadProps) => { const { loading, error, data } = useGetQueryWithSubscription({ query: ops.CONSOLE_LOGGING_RESOURCES_POD_GET, subscription: ops.CONSOLE_LOGGING_RESOURCES_POD_WATCH, - skip: parts.length < 3, + skip: (!namespace || !name), variables: { namespace, name }, queryDataKey: 'coreV1PodsGet', subscriptionDataKey: 'coreV1PodsWatch', @@ -370,14 +361,11 @@ const LoadPodWorkload = ({ sourcePath }: { sourcePath: string }) => { * Fetch a ReplicaSet workload and associated streams */ -const LoadReplicaSetWorkload = ({ sourcePath }: { sourcePath: string }) => { - const parts = sourcePath.split('/'); - const [namespace, name] = [parts[1], parts[2]]; - +const LoadReplicaSetWorkload = ({ namespace, name, sourcePath }: LoadWorkloadProps) => { const { loading, error, data } = useGetQueryWithSubscription({ query: ops.CONSOLE_LOGGING_RESOURCES_REPLICASET_GET, subscription: ops.CONSOLE_LOGGING_RESOURCES_REPLICASET_WATCH, - skip: parts.length < 2, + skip: (!namespace || !name), variables: { namespace, name }, queryDataKey: 'appsV1ReplicaSetsGet', subscriptionDataKey: 'appsV1ReplicaSetsWatch', @@ -404,14 +392,11 @@ const LoadReplicaSetWorkload = ({ sourcePath }: { sourcePath: string }) => { * Fetch a StatefulSet workload and associated streams */ -const LoadStatefulSetWorkload = ({ sourcePath }: { sourcePath: string }) => { - const parts = sourcePath.split('/'); - const [namespace, name] = [parts[1], parts[2]]; - +const LoadStatefulSetWorkload = ({ namespace, name, sourcePath }: LoadWorkloadProps) => { const { loading, error, data } = useGetQueryWithSubscription({ query: ops.CONSOLE_LOGGING_RESOURCES_STATEFULSET_GET, subscription: ops.CONSOLE_LOGGING_RESOURCES_STATEFULSET_WATCH, - skip: parts.length < 2, + skip: (!namespace || !name), variables: { namespace, name }, queryDataKey: 'appsV1StatefulSetsGet', subscriptionDataKey: 'appsV1StatefulSetsWatch', @@ -434,6 +419,32 @@ const LoadStatefulSetWorkload = ({ sourcePath }: { sourcePath: string }) => { ); }; +/** + * Fetch all pods and associated streams for a given namespace + */ + +const LoadPodWorkloadWildcard = ({ namespace, sourcePath }: { namespace: string; sourcePath: string; }) => { + const { loading, error, data } = useListQueryWithSubscription({ + query: ops.CONSOLE_LOGGING_RESOURCES_PODS_LIST_FETCH, + subscription: ops.CONSOLE_LOGGING_RESOURCES_PODS_LIST_WATCH, + skip: !namespace, + variables: { namespace }, + queryDataKey: 'coreV1PodsList', + subscriptionDataKey: 'coreV1PodsWatch', + }); + + const [sourceToPodListResponseMap, setSourceToPodListResponseMap] = useRecoilState(sourceToPodListResponseMapState); + + useEffect(() => { + const items = data?.coreV1PodsList?.items; + const newMap = new Map(sourceToPodListResponseMap); + newMap.set(sourcePath, { loading, error, items }); + setSourceToPodListResponseMap(newMap); + }, [loading, error, data]); + + return null; +}; + /** * Source deletion handler component */ @@ -490,10 +501,13 @@ export const LoggingResourcesProvider = ({ sourcePaths, children }: LoggingResou {sourcePathsSorted.map((path) => { - const parts = path.split('/'); - if (!(parts[0] in resourceLoaders)) throw new Error(`not implemented: ${parts[0]}`); - const Component = resourceLoaders[parts[0] as WorkloadType]; - return ; + const [namespace, workloadType, workloadName] = path.split('/'); + if (workloadType === WorkloadType.PODS && workloadName === '*') { + return ; + } + if (!(workloadType in resourceLoaders)) throw new Error(`not implemented: ${workloadType}`); + const Component = resourceLoaders[workloadType as WorkloadType]; + return ; })} {children} diff --git a/frontend/src/lib/graphql/__generated__/gql.ts b/frontend/src/lib/graphql/__generated__/gql.ts index a97e8d70..4fa8c955 100644 --- a/frontend/src/lib/graphql/__generated__/gql.ts +++ b/frontend/src/lib/graphql/__generated__/gql.ts @@ -81,6 +81,8 @@ const documents = { "\n subscription ConsoleLoggingResourcesJobWatch($namespace: String!, $fieldSelector: String!) {\n batchV1JobsWatch(namespace: $namespace, options: { fieldSelector: $fieldSelector }) {\n type\n object {\n ...ConsoleLoggingResourcesJobFragment\n }\n }\n }\n": types.ConsoleLoggingResourcesJobWatchDocument, "\n query ConsoleLoggingResourcesPodGet($namespace: String!, $name: String!) {\n coreV1PodsGet(namespace: $namespace, name: $name) {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n": types.ConsoleLoggingResourcesPodGetDocument, "\n subscription ConsoleLoggingResourcesPodWatch($namespace: String!, $fieldSelector: String!) {\n coreV1PodsWatch(namespace: $namespace, options: { fieldSelector: $fieldSelector }) {\n type\n object {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n }\n": types.ConsoleLoggingResourcesPodWatchDocument, + "\n query ConsolePodsListFetch($namespace: String!, $continue: String = \"\") {\n coreV1PodsList(namespace: $namespace, options: { limit: \"50\", continue: $continue }) {\n metadata {\n continue\n resourceVersion\n }\n items {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n }\n": types.ConsolePodsListFetchDocument, + "\n subscription ConsolePodsListWatch($namespace: String!, $resourceVersion: String = \"\") {\n coreV1PodsWatch(namespace: $namespace, options: { resourceVersion: $resourceVersion }) {\n type\n object {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n }\n": types.ConsolePodsListWatchDocument, "\n query ConsoleLoggingResourcesReplicaSetGet($namespace: String!, $name: String!) {\n appsV1ReplicaSetsGet(namespace: $namespace, name: $name) {\n ...ConsoleLoggingResourcesReplicaSetFragment\n }\n }\n": types.ConsoleLoggingResourcesReplicaSetGetDocument, "\n subscription ConsoleLoggingResourcesReplicaSetWatch($namespace: String!, $fieldSelector: String!) {\n appsV1ReplicaSetsWatch(namespace: $namespace, options: { fieldSelector: $fieldSelector }) {\n type\n object {\n ...ConsoleLoggingResourcesReplicaSetFragment\n }\n }\n }\n": types.ConsoleLoggingResourcesReplicaSetWatchDocument, "\n query ConsoleLoggingResourcesStatefulSetGet($namespace: String!, $name: String!) {\n appsV1StatefulSetsGet(namespace: $namespace, name: $name) {\n ...ConsoleLoggingResourcesStatefulSetFragment\n } \n }\n": types.ConsoleLoggingResourcesStatefulSetGetDocument, @@ -442,6 +444,14 @@ export function gql(source: "\n query ConsoleLoggingResourcesPodGet($namespace: * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function gql(source: "\n subscription ConsoleLoggingResourcesPodWatch($namespace: String!, $fieldSelector: String!) {\n coreV1PodsWatch(namespace: $namespace, options: { fieldSelector: $fieldSelector }) {\n type\n object {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n }\n"): (typeof documents)["\n subscription ConsoleLoggingResourcesPodWatch($namespace: String!, $fieldSelector: String!) {\n coreV1PodsWatch(namespace: $namespace, options: { fieldSelector: $fieldSelector }) {\n type\n object {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n }\n"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "\n query ConsolePodsListFetch($namespace: String!, $continue: String = \"\") {\n coreV1PodsList(namespace: $namespace, options: { limit: \"50\", continue: $continue }) {\n metadata {\n continue\n resourceVersion\n }\n items {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n }\n"): (typeof documents)["\n query ConsolePodsListFetch($namespace: String!, $continue: String = \"\") {\n coreV1PodsList(namespace: $namespace, options: { limit: \"50\", continue: $continue }) {\n metadata {\n continue\n resourceVersion\n }\n items {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n }\n"]; +/** + * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. + */ +export function gql(source: "\n subscription ConsolePodsListWatch($namespace: String!, $resourceVersion: String = \"\") {\n coreV1PodsWatch(namespace: $namespace, options: { resourceVersion: $resourceVersion }) {\n type\n object {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n }\n"): (typeof documents)["\n subscription ConsolePodsListWatch($namespace: String!, $resourceVersion: String = \"\") {\n coreV1PodsWatch(namespace: $namespace, options: { resourceVersion: $resourceVersion }) {\n type\n object {\n ...ConsoleLoggingResourcesPodFragment\n }\n }\n }\n"]; /** * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/frontend/src/lib/graphql/__generated__/graphql.ts b/frontend/src/lib/graphql/__generated__/graphql.ts index 42a03552..2fc0241e 100644 --- a/frontend/src/lib/graphql/__generated__/graphql.ts +++ b/frontend/src/lib/graphql/__generated__/graphql.ts @@ -1296,6 +1296,22 @@ export type ConsoleLoggingResourcesPodWatchSubscriptionVariables = Exact<{ export type ConsoleLoggingResourcesPodWatchSubscription = { __typename?: 'Subscription', coreV1PodsWatch?: { __typename?: 'CoreV1PodsWatchEvent', type: WatchEventType, object?: { __typename?: 'CoreV1Pod', id: string, spec: { __typename?: 'CoreV1PodSpec', nodeName: string, containers: Array<{ __typename?: 'CoreV1Container', name: string }> }, status: { __typename?: 'CoreV1PodStatus', containerStatuses: Array<{ __typename?: 'CoreV1ContainerStatus', name: string, started?: boolean | null, state: { __typename?: 'CoreV1ContainerState', running?: { __typename?: 'CoreV1ContainerStateRunning', startedAt: any } | null } }> }, metadata: { __typename?: 'MetaV1ObjectMeta', namespace: string, name: string, uid: string, creationTimestamp: any, deletionTimestamp?: any | null, resourceVersion: string, ownerReferences: Array<{ __typename?: 'MetaV1OwnerReference', name: string, uid: string, controller?: boolean | null }> } } | null } | null }; +export type ConsolePodsListFetchQueryVariables = Exact<{ + namespace: Scalars['String']['input']; + continue?: InputMaybe; +}>; + + +export type ConsolePodsListFetchQuery = { __typename?: 'Query', coreV1PodsList?: { __typename?: 'CoreV1PodList', metadata: { __typename?: 'MetaV1ListMeta', continue: string, resourceVersion: string }, items: Array<{ __typename?: 'CoreV1Pod', id: string, spec: { __typename?: 'CoreV1PodSpec', nodeName: string, containers: Array<{ __typename?: 'CoreV1Container', name: string }> }, status: { __typename?: 'CoreV1PodStatus', containerStatuses: Array<{ __typename?: 'CoreV1ContainerStatus', name: string, started?: boolean | null, state: { __typename?: 'CoreV1ContainerState', running?: { __typename?: 'CoreV1ContainerStateRunning', startedAt: any } | null } }> }, metadata: { __typename?: 'MetaV1ObjectMeta', namespace: string, name: string, uid: string, creationTimestamp: any, deletionTimestamp?: any | null, resourceVersion: string, ownerReferences: Array<{ __typename?: 'MetaV1OwnerReference', name: string, uid: string, controller?: boolean | null }> } }> } | null }; + +export type ConsolePodsListWatchSubscriptionVariables = Exact<{ + namespace: Scalars['String']['input']; + resourceVersion?: InputMaybe; +}>; + + +export type ConsolePodsListWatchSubscription = { __typename?: 'Subscription', coreV1PodsWatch?: { __typename?: 'CoreV1PodsWatchEvent', type: WatchEventType, object?: { __typename?: 'CoreV1Pod', id: string, spec: { __typename?: 'CoreV1PodSpec', nodeName: string, containers: Array<{ __typename?: 'CoreV1Container', name: string }> }, status: { __typename?: 'CoreV1PodStatus', containerStatuses: Array<{ __typename?: 'CoreV1ContainerStatus', name: string, started?: boolean | null, state: { __typename?: 'CoreV1ContainerState', running?: { __typename?: 'CoreV1ContainerStateRunning', startedAt: any } | null } }> }, metadata: { __typename?: 'MetaV1ObjectMeta', namespace: string, name: string, uid: string, creationTimestamp: any, deletionTimestamp?: any | null, resourceVersion: string, ownerReferences: Array<{ __typename?: 'MetaV1OwnerReference', name: string, uid: string, controller?: boolean | null }> } } | null } | null }; + export type ConsoleLoggingResourcesReplicaSetGetQueryVariables = Exact<{ namespace: Scalars['String']['input']; name: Scalars['String']['input']; @@ -1943,6 +1959,8 @@ export const ConsoleLoggingResourcesJobGetDocument = {"kind":"Document","definit export const ConsoleLoggingResourcesJobWatchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"ConsoleLoggingResourcesJobWatch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldSelector"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"batchV1JobsWatch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"namespace"},"value":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}}},{"kind":"Argument","name":{"kind":"Name","value":"options"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"fieldSelector"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldSelector"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"object"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesJobFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"creationTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deletionTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"resourceVersion"}},{"kind":"Field","name":{"kind":"Name","value":"ownerReferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"controller"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesJobFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BatchV1Job"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"}},{"kind":"Field","name":{"kind":"Name","value":"spec"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selector"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"matchLabels"}}]}}]}}]}}]} as unknown as DocumentNode; export const ConsoleLoggingResourcesPodGetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodGet"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"coreV1PodsGet"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"namespace"},"value":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"creationTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deletionTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"resourceVersion"}},{"kind":"Field","name":{"kind":"Name","value":"ownerReferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"controller"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreV1Pod"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"}},{"kind":"Field","name":{"kind":"Name","value":"spec"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"containers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nodeName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"status"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"containerStatuses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"started"}},{"kind":"Field","name":{"kind":"Name","value":"state"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"running"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startedAt"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const ConsoleLoggingResourcesPodWatchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodWatch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldSelector"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"coreV1PodsWatch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"namespace"},"value":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}}},{"kind":"Argument","name":{"kind":"Name","value":"options"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"fieldSelector"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldSelector"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"object"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"creationTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deletionTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"resourceVersion"}},{"kind":"Field","name":{"kind":"Name","value":"ownerReferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"controller"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreV1Pod"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"}},{"kind":"Field","name":{"kind":"Name","value":"spec"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"containers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nodeName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"status"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"containerStatuses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"started"}},{"kind":"Field","name":{"kind":"Name","value":"state"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"running"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startedAt"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const ConsolePodsListFetchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ConsolePodsListFetch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"continue"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"coreV1PodsList"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"namespace"},"value":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}}},{"kind":"Argument","name":{"kind":"Name","value":"options"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"limit"},"value":{"kind":"StringValue","value":"50","block":false}},{"kind":"ObjectField","name":{"kind":"Name","value":"continue"},"value":{"kind":"Variable","name":{"kind":"Name","value":"continue"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"continue"}},{"kind":"Field","name":{"kind":"Name","value":"resourceVersion"}}]}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"creationTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deletionTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"resourceVersion"}},{"kind":"Field","name":{"kind":"Name","value":"ownerReferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"controller"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreV1Pod"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"}},{"kind":"Field","name":{"kind":"Name","value":"spec"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"containers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nodeName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"status"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"containerStatuses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"started"}},{"kind":"Field","name":{"kind":"Name","value":"state"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"running"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startedAt"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const ConsolePodsListWatchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"ConsolePodsListWatch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"resourceVersion"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}},"defaultValue":{"kind":"StringValue","value":"","block":false}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"coreV1PodsWatch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"namespace"},"value":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}}},{"kind":"Argument","name":{"kind":"Name","value":"options"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"resourceVersion"},"value":{"kind":"Variable","name":{"kind":"Name","value":"resourceVersion"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"object"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"creationTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deletionTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"resourceVersion"}},{"kind":"Field","name":{"kind":"Name","value":"ownerReferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"controller"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesPodFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CoreV1Pod"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"}},{"kind":"Field","name":{"kind":"Name","value":"spec"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"containers"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"nodeName"}}]}},{"kind":"Field","name":{"kind":"Name","value":"status"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"containerStatuses"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"started"}},{"kind":"Field","name":{"kind":"Name","value":"state"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"running"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startedAt"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const ConsoleLoggingResourcesReplicaSetGetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ConsoleLoggingResourcesReplicaSetGet"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appsV1ReplicaSetsGet"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"namespace"},"value":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesReplicaSetFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"creationTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deletionTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"resourceVersion"}},{"kind":"Field","name":{"kind":"Name","value":"ownerReferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"controller"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesReplicaSetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AppsV1ReplicaSet"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"}},{"kind":"Field","name":{"kind":"Name","value":"spec"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selector"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"matchLabels"}}]}}]}}]}}]} as unknown as DocumentNode; export const ConsoleLoggingResourcesReplicaSetWatchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"ConsoleLoggingResourcesReplicaSetWatch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldSelector"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appsV1ReplicaSetsWatch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"namespace"},"value":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}}},{"kind":"Argument","name":{"kind":"Name","value":"options"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"fieldSelector"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldSelector"}}}]}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"object"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesReplicaSetFragment"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"creationTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deletionTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"resourceVersion"}},{"kind":"Field","name":{"kind":"Name","value":"ownerReferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"controller"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesReplicaSetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AppsV1ReplicaSet"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"}},{"kind":"Field","name":{"kind":"Name","value":"spec"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selector"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"matchLabels"}}]}}]}}]}}]} as unknown as DocumentNode; export const ConsoleLoggingResourcesStatefulSetGetDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ConsoleLoggingResourcesStatefulSetGet"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"name"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"appsV1StatefulSetsGet"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"namespace"},"value":{"kind":"Variable","name":{"kind":"Name","value":"namespace"}}},{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"name"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesStatefulSetFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"Object"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"metadata"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"namespace"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"creationTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"deletionTimestamp"}},{"kind":"Field","name":{"kind":"Name","value":"resourceVersion"}},{"kind":"Field","name":{"kind":"Name","value":"ownerReferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"uid"}},{"kind":"Field","name":{"kind":"Name","value":"controller"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"ConsoleLoggingResourcesStatefulSetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AppsV1StatefulSet"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"ConsoleLoggingResourcesGenericObjectFragment"}},{"kind":"Field","name":{"kind":"Name","value":"spec"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"selector"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"matchLabels"}}]}}]}}]}}]} as unknown as DocumentNode; diff --git a/frontend/src/lib/graphql/ops.ts b/frontend/src/lib/graphql/ops.ts index e9f0ed44..01028530 100644 --- a/frontend/src/lib/graphql/ops.ts +++ b/frontend/src/lib/graphql/ops.ts @@ -293,6 +293,31 @@ export const CONSOLE_LOGGING_RESOURCES_POD_WATCH = gql(` } `); +export const CONSOLE_LOGGING_RESOURCES_PODS_LIST_FETCH = gql(` + query ConsolePodsListFetch($namespace: String!, $continue: String = "") { + coreV1PodsList(namespace: $namespace, options: { limit: "50", continue: $continue }) { + metadata { + continue + resourceVersion + } + items { + ...ConsoleLoggingResourcesPodFragment + } + } + } +`); + +export const CONSOLE_LOGGING_RESOURCES_PODS_LIST_WATCH = gql(` + subscription ConsolePodsListWatch($namespace: String!, $resourceVersion: String = "") { + coreV1PodsWatch(namespace: $namespace, options: { resourceVersion: $resourceVersion }) { + type + object { + ...ConsoleLoggingResourcesPodFragment + } + } + } +`); + export const CONSOLE_LOGGING_RESOURCES_REPLICASET_GET = gql(` query ConsoleLoggingResourcesReplicaSetGet($namespace: String!, $name: String!) { appsV1ReplicaSetsGet(namespace: $namespace, name: $name) { diff --git a/frontend/src/pages/home.tsx b/frontend/src/pages/home.tsx index c34136f5..b1bc6757 100644 --- a/frontend/src/pages/home.tsx +++ b/frontend/src/pages/home.tsx @@ -218,7 +218,7 @@ const DisplayItems = ({ {visibleItems?.map((item) => { - const sourceString = `${workload}/${item.metadata.namespace}/${item.metadata.name}`; + const sourceString = `${item.metadata.namespace}/${workload}/${item.metadata.name}`; return (