Skip to content

Update command in "Disable Chaos Infrastructure" popup in ChaosCenter #5253

@PriteshKiri

Description

@PriteshKiri

In the ChaosCenter, when disabling a chaos infrastructure from the Environment section, the popup shows a command to delete the chaos experiments, engines, and results. The current command is incorrect, which can cause users to fail when trying to clean up resources.

Current command displayed:
kubectl delete chaosexperiment chaosengine chaosresult --all -n chaos-infrastructure

Correct command:
kubectl delete chaosexperiment,chaosengine,chaosresult --all -n ${chaosInfrastructureNamespace}

Location

ChaosCenter → Environment section → select Disable Chaos infra → Disable Chaos Infrastructure popup

Image

Steps to Reproduce

  1. Open ChaosCenter.
  2. Navigate to the Environment section.
  3. Select Disable Chaos Infra for an environment.
  4. Observe the delete command in the popup.

Expected Behavior

  • The popup should display the correct command:
    kubectl delete chaosexperiment,chaosengine,chaosresult --all -n ${chaosInfrastructureNamespace}

Proposed Fix

  • Update the command text in the popup and use commas to separate the resource types.
  • Verify that the pop-up displays the command correctly for all environments.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions