Skip to content

operator: refactor run parametrization#921

Merged
RafalKorepta merged 2 commits intomainfrom
chris/p/k8s-586-refactor-run
Jul 10, 2025
Merged

operator: refactor run parametrization#921
RafalKorepta merged 2 commits intomainfrom
chris/p/k8s-586-refactor-run

Conversation

@chrisseto
Copy link
Contributor

The Run entrypoint of the operator had a nasty case of "too many parameters" syndrome combined with a lot of needless duplication.

This commit extracts all CLI parameters into a monolithic struct and removes intermediate variables where possible. The end result is still fairly sprawling but has fewer moving parts than the previous iteration.

@chrisseto chrisseto force-pushed the chris/p/k8s-586-refactor-run branch from 699bf43 to 2325df5 Compare June 18, 2025 18:47
@github-actions
Copy link

This PR is stale because it has been open 5 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jun 24, 2025
@chrisseto chrisseto removed the stale label Jun 27, 2025
@github-actions
Copy link

github-actions bot commented Jul 3, 2025

This PR is stale because it has been open 5 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the stale label Jul 3, 2025
@github-actions
Copy link

github-actions bot commented Jul 8, 2025

This PR was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this Jul 8, 2025
@RafalKorepta RafalKorepta reopened this Jul 8, 2025
@RafalKorepta RafalKorepta force-pushed the chris/p/k8s-586-refactor-run branch from 2325df5 to 09e323f Compare July 8, 2025 16:59
@github-actions github-actions bot removed the stale label Jul 9, 2025
@RafalKorepta RafalKorepta force-pushed the chris/p/k8s-586-refactor-run branch 2 times, most recently from 9bc8dd9 to 38bbfe4 Compare July 10, 2025 17:27
@RafalKorepta RafalKorepta enabled auto-merge (rebase) July 10, 2025 17:27
chrisseto and others added 2 commits July 10, 2025 19:43
The `Run` entrypoint of the operator had a nasty case of "too many parameters"
syndrome combined with a lot of needless duplication.

This commit extracts all CLI parameters into a monolithic struct and removes
intermediate variables where possible. The end result is still fairly sprawling
but has fewer moving parts than the previous iteration.
In the execution sometimes the schema registry subsystem is not ready to handle
requests. To make test suite more stable single assertion was replaced with
Eventually function.

To add more the stdout was not reset after each rpk command. Now it will be
truncated.
@RafalKorepta RafalKorepta force-pushed the chris/p/k8s-586-refactor-run branch from 38bbfe4 to 4c581ad Compare July 10, 2025 17:51
@RafalKorepta RafalKorepta merged commit 39182a2 into main Jul 10, 2025
10 checks passed
@RafalKorepta RafalKorepta deleted the chris/p/k8s-586-refactor-run branch July 10, 2025 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants