Skip to content

refactor(cni): promote hostgw out of the veth plugin's tree - #362

Open
ecv wants to merge 1 commit into
mainfrom
refactor/promote-hostgw
Open

refactor(cni): promote hostgw out of the veth plugin's tree#362
ecv wants to merge 1 commit into
mainfrom
refactor/promote-hostgw

Conversation

@ecv

@ecv ecv commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Four packages under the veth plugin's tree were shared by binaries outside it. Three moved up a level earlier so the other chain binaries stop reaching into one plugin's internals for things all of them use. The fourth stayed behind.

This moves it, and it is the one with the strongest case. The other three are schema and naming helpers. This one configures kernel state on an interface, and two binaries outside its parent call it to do that.

Nothing about the code changes. The package name is the same, every call site is an import line, and no behavior moves with it.

One thing found on the way: the architecture reference's module tree still showed the other three nested where they no longer are. That has been stale since they moved. The tree and the unit-test package list now match the filesystem for all four.

Test plan

  • task lint
  • task build
  • task test:unit
  • task test:e2e

All four ride on CI here rather than locally.

Related to #344

Three shared packages moved out from under internal/cni in #315 so the
other chain binaries stop reaching into one plugin's own tree for things
all of them use. hostgw met the same description and stayed behind.

It is the strongest case of the four, not the weakest: hostconf,
crdnames and nadpatch are schema and naming helpers, while hostgw
configures kernel state on an interface, and two binaries outside its
parent (galactic-tap, via internal/cnitap; galactic-veth's own
internal/cni) call it to do that.

The move is mechanical. The package name does not change, every call
site is an import line, and no behavior changes.

While updating the architecture reference, its module tree still showed
hostconf, crdnames and nadpatch nested under internal/cni as well. That
has been stale since #315 promoted them; the tree and the unit-test
package list now match the filesystem for all four.

Related to #344
@ecv
ecv marked this pull request as ready for review August 13, 2026 02:43
@ecv
ecv requested a review from a team as a code owner August 13, 2026 02:43
@ecv
ecv requested a review from jacobsmith928 August 13, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant