From 719d78316d2a50a887e99c1fb8fe65549a129f74 Mon Sep 17 00:00:00 2001 From: Baalekshan <69910615+Baalekshan@users.noreply.github.com> Date: Fri, 7 Jun 2024 11:53:24 +0530 Subject: [PATCH] Hide 'Cluster-Wide' Access in namespace scoped ChaosCentre (#4615) Signed-off-by: Baalekshan --- .../DeploymentScopeCards.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chaoscenter/web/src/components/KubernetesChaosInfrastructureDeploymentCards/DeploymentScopeCards.tsx b/chaoscenter/web/src/components/KubernetesChaosInfrastructureDeploymentCards/DeploymentScopeCards.tsx index 061c9b5b35c..11afca0755b 100644 --- a/chaoscenter/web/src/components/KubernetesChaosInfrastructureDeploymentCards/DeploymentScopeCards.tsx +++ b/chaoscenter/web/src/components/KubernetesChaosInfrastructureDeploymentCards/DeploymentScopeCards.tsx @@ -52,7 +52,11 @@ export function DeploymentScope({ return ( name="deploymentScope" - items={isInfraPresent ? deploymentScopeDataNs : deploymentScopeData} + items={ + isInfraPresent || deploymentScope === DeploymentScopeOptions.NAMESPACE + ? deploymentScopeDataNs + : deploymentScopeData + } selected={deploymentScopeData[deploymentScopeData.findIndex(card => card.type === deploymentScope)]} onChange={onChange} type={CollapsableSelectType.CardView}