remove utils package. move code to dedicated packages#521
Merged
oleg-kushniriov merged 2 commits intoApr 14, 2026
Merged
Conversation
danbar2
approved these changes
Apr 12, 2026
shayasoolin
approved these changes
Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Deletes e2e/utils/ and moves its contents into the domain packages (k8s/, grove/, log/, measurement/).
The domain packages (k8s/, grove/, diagnostics/) already exist but their methods still delegate to utils.* functions, creating two layers for every operation. The utils/ package has no clear domain — it's a dumping ground with node helpers, polling, Grove resource operations,
conversions, and logging all in one place. Removing it eliminates the indirection and puts every function in the package that owns its domain.
What moved where:
Which issue(s) this PR fixes:
Fixes #517
Special notes for your reviewer:
This is a pure move/delete refactor — no behavioral changes. Every function either already had an equivalent in a domain package (and the utils/ duplicate was removed) or was moved as-is to the appropriate domain package. Build and unit tests pass.
Does this PR introduce a API change?
NONE
Additional documentation e.g., enhancement proposals, usage docs, etc.: