litmus icon indicating copy to clipboard operation
litmus copied to clipboard

Hide the 'cluster-wide access infrastructure' option when ChaosCenter is namespaced scope

Open namkyu1999 opened this issue 1 year ago • 4 comments

Litmus has two components, Chaos Center (control plane) and Chaos infrastructure (execution plane).

We can restrict Chaos Center's scope as cluster-wide or namespaced through passing env. And we can also restrict Chaos infrastructure's scope as cluster-wide or namespaced through Chaos Center's UI.

The problem happened when we installed Chaos Center as namespaced and tried to install Chaos infrastructure as cluster-wide. Because namespaced Chaos Center doesn't have permission to create the cluster-wide access chaos infrastructure, We have to disable cluster-wide access option.

Currently, We can face the error below

Screenshot 2024-04-28 at 4 35 53 PM

Screenshot 2024-04-28 at 4 35

Anyone who want to take this issue, please let me know 😄

fyi

namkyu1999 avatar Apr 29 '24 08:04 namkyu1999

hi @namkyu1999 , I would like to work on this.

Baalekshan avatar May 01 '24 16:05 Baalekshan

go ahead, @Baalekshan

namkyu1999 avatar May 02 '24 00:05 namkyu1999

What is the benefit of having the scope defined for ChaosCenter? Ideally, the control plane should be agnostic of what infra scope we use for the execution plane, know? Is the added complexity of restricting this worth it. Even if users can see the option to generate manifest they can only apply it if they have access to do so in cluster.

smitthakkar96 avatar May 02 '24 11:05 smitthakkar96

I have setup litmus locally and how can i run this in a namespaced scope ? So that I could test it.

Baalekshan avatar May 02 '24 14:05 Baalekshan

@namkyu1999 @Baalekshan can i work on this or it is already sloved this issue .

jayesh9747 avatar May 29 '24 14:05 jayesh9747

@jayesh9747 I have raised PR and it's on a pending review. @namkyu1999 can you take a look at my PR.

Baalekshan avatar May 29 '24 18:05 Baalekshan