From 2ca18ab5feea819e6ec2c093325d3bd822d9580b Mon Sep 17 00:00:00 2001 From: asingh <11219262+ashutosh16@users.noreply.github.com> Date: Fri, 9 Sep 2022 08:22:32 -0700 Subject: [PATCH] fix: hide terminal on the non-pod resource kind (#9980) (#10556) Signed-off-by: ashutosh16 <11219262+ashutosh16@users.noreply.github.com> Signed-off-by: ashutosh16 <11219262+ashutosh16@users.noreply.github.com> --- .../components/resource-details/resource-details.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/app/applications/components/resource-details/resource-details.tsx b/ui/src/app/applications/components/resource-details/resource-details.tsx index 871abb7b47ebc..c3057b178f031 100644 --- a/ui/src/app/applications/components/resource-details/resource-details.tsx +++ b/ui/src/app/applications/components/resource-details/resource-details.tsx @@ -114,7 +114,7 @@ export const ResourceDetails = (props: ResourceDetailsProps) => { } ]); } - if (execEnabled && execAllowed) { + if (selectedNode.kind === 'Pod' && execEnabled && execAllowed) { tabs = tabs.concat([ { key: 'exec',