Skip to content

Commit e4ef8c9

Browse files
Baalekshanandoriyaprashant
authored andcommitted
Hide 'Cluster-Wide' Access in namespace scoped ChaosCentre (litmuschaos#4615)
Signed-off-by: Baalekshan <baalekshan@gmail.com> Signed-off-by: andoriyaprashant <prashantandoriya@gmail.com>
1 parent 4852d87 commit e4ef8c9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

chaoscenter/web/src/components/KubernetesChaosInfrastructureDeploymentCards/DeploymentScopeCards.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ export function DeploymentScope({
5252
return (
5353
<FormikCollapsableSelect<DeploymentScopeItem>
5454
name="deploymentScope"
55-
items={isInfraPresent ? deploymentScopeDataNs : deploymentScopeData}
55+
items={
56+
isInfraPresent || deploymentScope === DeploymentScopeOptions.NAMESPACE
57+
? deploymentScopeDataNs
58+
: deploymentScopeData
59+
}
5660
selected={deploymentScopeData[deploymentScopeData.findIndex(card => card.type === deploymentScope)]}
5761
onChange={onChange}
5862
type={CollapsableSelectType.CardView}

0 commit comments

Comments
 (0)