Refactor the code around the AgentController to improve the separation of concerns and facilitate testing by separating the logic that handles the management of a set of pods (PodController) from the logic that interacts with one agent (PodVisitor).
Also simplifies the API around the generation of the commands used for interacting with the pod agent.
Description
Refactor the code around the AgentController to improve the separation of concerns and facilitate testing by separating the logic that handles the management of a set of pods (PodController) from the logic that interacts with one agent (PodVisitor).
Also simplifies the API around the generation of the commands used for interacting with the pod agent.
Fixes: https://github.com/grafana/xk6-disruptor/issues/259
Checklist:
make lint
) and all checks pass.make test
) and all tests pass.make integration-xxx
for affected packages)make e2e-xxx
fordisruptors
, orcluster
related changes)