fix: start_klusterlet_scenario action calls start instead of stop (#1324)

The start_klusterlet_scenario branch in inject_managedcluster_scenario
was calling stop_klusterlet_scenario on the scenarios object instead of
start_klusterlet_scenario. Any user configuring this action would stop
the klusterlet (scale to 0) instead of starting it (scale to 3).

Fixes #1323

Signed-off-by: v0idheaven <dahiyavarun2007@gmail.com>
Co-authored-by: Paige Patton <64206430+paigerube14@users.noreply.github.com>
This commit is contained in:
Varun Yadav
2026-05-18 09:45:50 -04:00
committed by GitHub
co-authored by Paige Patton
parent 0c4ac9f578
commit 8984b50409
@@ -115,7 +115,7 @@ class ManagedClusterScenarioPlugin(AbstractScenarioPlugin):
run_kill_count, single_managedcluster, timeout
)
elif action == "start_klusterlet_scenario":
managedcluster_scenario_object.stop_klusterlet_scenario(
managedcluster_scenario_object.start_klusterlet_scenario(
run_kill_count, single_managedcluster, timeout
)
elif action == "stop_klusterlet_scenario":