Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor TestRun controller #398

Open
yorugac opened this issue Apr 24, 2024 · 0 comments
Open

Refactor TestRun controller #398

yorugac opened this issue Apr 24, 2024 · 0 comments
Assignees
Labels
FSM Connected to FSM maintenance
Milestone

Comments

@yorugac
Copy link
Collaborator

yorugac commented Apr 24, 2024

Historically, k6-operator has been quite a straight-forward project (as far as Kubernetes operators go) and pretty straight-forward to maintain or to work with. But recently, it has been becoming more complex, esp. with the work on idempotence problem and recent addition of PrivateLoadZone feature. TestRun controller especially is quite unwieldy now, and refactoring is in order.

The main goals are:

  • improve readability
  • simplify maintenance effort
  • extend our unit tests coverage

On solution. There is no "standard" way to implement Kubernetes operators. And our particular operator is quite heavy on custom logic which does not make sense to persist as Kubernetes resources at this point of time. Still, it is just the code. One way to simplify it is to write a framework, specifically for this operator. Another way is to find an existing solution. After conducting research and trying out different PoC's, it appears that we are not the first to encounter a similar problem and it makes sense to try to use an existing library.

This is a large task and it will be split into separate PRs. The list of PRs will be updated here.

@yorugac yorugac self-assigned this Apr 24, 2024
@yorugac yorugac added maintenance FSM Connected to FSM labels Apr 24, 2024
@yorugac yorugac added this to the 0.15 milestone Apr 24, 2024
@yorugac yorugac modified the milestones: 0.15, 0.16 Jul 5, 2024
@yorugac yorugac modified the milestones: 0.16, 0.17 Jul 29, 2024
@yorugac yorugac modified the milestones: 0.17, 0.18 Oct 3, 2024
@yorugac yorugac modified the milestones: 0.18, 0.20 Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FSM Connected to FSM maintenance
Projects
None yet
Development

No branches or pull requests

1 participant