diff --git a/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/DeploymentDetails.tsx b/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/DeploymentDetails.tsx index a9f7481c4c0..e59d2f5f176 100644 --- a/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/DeploymentDetails.tsx +++ b/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/DeploymentDetails.tsx @@ -87,7 +87,7 @@ function DeploymentDetails({ { id: uuidv4(), key: { - key: QUERY_KEYS.K8S_NODE_NAME, + key: QUERY_KEYS.K8S_DEPLOYMENT_NAME, dataType: DataTypes.String, type: 'resource', isColumn: false, @@ -100,7 +100,7 @@ function DeploymentDetails({ { id: uuidv4(), key: { - key: QUERY_KEYS.K8S_CLUSTER_NAME, + key: QUERY_KEYS.K8S_NAMESPACE_NAME, dataType: DataTypes.String, type: 'resource', isColumn: false, @@ -108,11 +108,11 @@ function DeploymentDetails({ id: 'k8s_deployment_name--string--resource--false', }, op: '=', - value: deployment?.meta.k8s_cluster_name || '', + value: deployment?.meta.k8s_namespace_name || '', }, ], }), - [deployment?.meta.k8s_deployment_name, deployment?.meta.k8s_cluster_name], + [deployment?.meta.k8s_deployment_name, deployment?.meta.k8s_namespace_name], ); const initialEventsFilters = useMemo( @@ -223,14 +223,15 @@ function DeploymentDetails({ (value: IBuilderQuery['filters']) => { setLogFilters((prevFilters) => { const primaryFilters = prevFilters.items.filter((item) => - [QUERY_KEYS.K8S_NODE_NAME, QUERY_KEYS.K8S_CLUSTER_NAME].includes( + [QUERY_KEYS.K8S_DEPLOYMENT_NAME, QUERY_KEYS.K8S_NAMESPACE_NAME].includes( item.key?.key ?? '', ), ); const paginationFilter = value.items.find((item) => item.key?.key === 'id'); const newFilters = value.items.filter( (item) => - item.key?.key !== 'id' && item.key?.key !== QUERY_KEYS.K8S_NODE_NAME, + item.key?.key !== 'id' && + item.key?.key !== QUERY_KEYS.K8S_DEPLOYMENT_NAME, ); logEvent( @@ -258,7 +259,7 @@ function DeploymentDetails({ (value: IBuilderQuery['filters']) => { setTracesFilters((prevFilters) => { const primaryFilters = prevFilters.items.filter((item) => - [QUERY_KEYS.K8S_NODE_NAME, QUERY_KEYS.K8S_CLUSTER_NAME].includes( + [QUERY_KEYS.K8S_DEPLOYMENT_NAME, QUERY_KEYS.K8S_NAMESPACE_NAME].includes( item.key?.key ?? '', ), ); @@ -275,7 +276,7 @@ function DeploymentDetails({ items: [ ...primaryFilters, ...value.items.filter( - (item) => item.key?.key !== QUERY_KEYS.K8S_NODE_NAME, + (item) => item.key?.key !== QUERY_KEYS.K8S_DEPLOYMENT_NAME, ), ].filter((item): item is TagFilterItem => item !== undefined), }; diff --git a/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/Events/DeploymentEvents.tsx b/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/Events/DeploymentEvents.tsx index 58fff15e92b..e9b95e83eac 100644 --- a/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/Events/DeploymentEvents.tsx +++ b/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/Events/DeploymentEvents.tsx @@ -160,6 +160,7 @@ export default function Events({ id: event.data.id, key: event.data.id, resources_string: event.data.resources_string, + attributes_string: event.data.attributes_string, }), ); @@ -179,7 +180,9 @@ export default function Events({ }, [eventsData]); const handleExpandRow = (record: EventDataType): JSX.Element => ( - + ); const handlePrev = (): void => { diff --git a/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/Logs/DeploymentLogs.tsx b/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/Logs/DeploymentLogs.tsx index 0573444ed85..9936ab74837 100644 --- a/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/Logs/DeploymentLogs.tsx +++ b/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/Logs/DeploymentLogs.tsx @@ -49,7 +49,7 @@ function PodLogs({ const newRestFilters = filters.items.filter( (item) => item.key?.key !== 'id' && - ![QUERY_KEYS.K8S_NODE_NAME, QUERY_KEYS.K8S_CLUSTER_NAME].includes( + ![QUERY_KEYS.K8S_DEPLOYMENT_NAME, QUERY_KEYS.K8S_NAMESPACE_NAME].includes( item.key?.key ?? '', ), ); diff --git a/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/constants.ts b/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/constants.ts index 67983c3f973..dc94ffe2179 100644 --- a/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/constants.ts +++ b/frontend/src/container/InfraMonitoringK8s/Deployments/DeploymentDetails/constants.ts @@ -1,6 +1,6 @@ export const QUERY_KEYS = { K8S_OBJECT_KIND: 'k8s.object.kind', K8S_OBJECT_NAME: 'k8s.object.name', - K8S_NODE_NAME: 'k8s.deployment.name', - K8S_CLUSTER_NAME: 'k8s.cluster.name', + K8S_DEPLOYMENT_NAME: 'k8s.deployment.name', + K8S_NAMESPACE_NAME: 'k8s.namespace.name', };