Skip to content

Conversation

@felix-kaestner
Copy link
Contributor

No description provided.

@felix-kaestner felix-kaestner requested a review from a team as a code owner December 4, 2025 17:30
@hardikdr hardikdr added the area/metal-automation Automation processes within the Metal project. label Dec 5, 2025
@hardikdr hardikdr added this to Roadmap Dec 5, 2025
Base automatically changed from routingpolicy to main December 16, 2025 09:03
As the `List` call explicitly uses the `InNamespace` option, there is no
need for using the `clientutil` package in this case.
In this situation is needless to use the `clientutil` as the namespace
for the resource is always given explicitly be the `ISIS` resource which
contains the `LocalObjectReferences`. Therefore using the client wrapper
is not needed.
This patch changes the implementation of the `List` method on the k8s
client wrapper implemented in the `clientutil` package to only add the
`InNamespace` option for restricting to a certain namespace, if that
option is not already provided to the function, honoring the callers
intend.
@github-actions
Copy link

Merging this branch changes the coverage (1 decrease, 1 increase)

Impacted Packages Coverage Δ 🤖
github.com/ironcore-dev/network-operator/internal/clientutil 82.19% (-6.38%) 👎
github.com/ironcore-dev/network-operator/internal/controller/core 69.91% (+0.17%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/ironcore-dev/network-operator/internal/clientutil/clientutil.go 82.19% (-6.38%) 73 (+3) 60 (-2) 13 (+5) 👎
github.com/ironcore-dev/network-operator/internal/controller/core/device_controller.go 74.55% (-0.15%) 165 (-1) 123 (-1) 42 👎
github.com/ironcore-dev/network-operator/internal/controller/core/isis_controller.go 64.08% (-0.35%) 103 (-1) 66 (-1) 37 👎

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

@felix-kaestner felix-kaestner merged commit b48c1bc into main Dec 19, 2025
9 checks passed
@felix-kaestner felix-kaestner deleted the refactor/clienutil branch December 19, 2025 13:41
@github-project-automation github-project-automation bot moved this to Done in Roadmap Dec 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/metal-automation Automation processes within the Metal project.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants