forked from cilium/cilium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hubble: move some types definition to avoid import cycles
As part of implementing unit tests for `pkg/hubble/relay/observer`, `FakeClientConn` is needed. Prior to this commit, the implementation was only present for testing in `pkg/hubble/relay/pool`. However, moving it to `pkg/hubble/testutils` creates import cycles within unit test files. In order to resolve them, some types definitions are moved to the existing `pkg/hubble/peer/types` package and a new `pkg/hubble/relay/pool/types` package. There are no functional changes with this commit; only the necessary changes to avoid build/test failures resulting from the aforementioned reorganization of packages and types definitions. Signed-off-by: Robin Hahling <[email protected]>
- Loading branch information
Showing
10 changed files
with
162 additions
and
128 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
// +build !privileged_tests | ||
|
||
package peer | ||
package types | ||
|
||
import ( | ||
"net" | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.