chore: Rename k8sgateway module to gateway#242
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Renames the Go module from k8sgateway to gateway and updates all in-repo import paths and build metadata accordingly, keeping the codebase compiling under the new module path.
Changes:
- Update
go.modmodule path togateway. - Rewrite all internal/test/tooling imports from
k8sgateway/...togateway/.... - Update GoReleaser
ldflags-Xpackage paths to match the new module name.
Reviewed changes
Copilot reviewed 49 out of 49 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tools/local/ssh.go | Update imports to gateway/... module path. |
| tools/local/main.go | Update imports to gateway/... module path. |
| tools/local/kind.go | Update imports to gateway/... module path. |
| test/integration/testutil/user.go | Update imports to gateway/... module path. |
| test/integration/testutil/ssh_client.go | Update imports to gateway/... module path. |
| test/integration/testutil/assertions.go | Update imports to gateway/... module path. |
| test/integration/ssh_test.go | Update imports to gateway/... module path. |
| test/integration/kubernetes_test.go | Update imports to gateway/... module path. |
| test/integration/concurrent_users_test.go | Update imports to gateway/... module path. |
| test/fake/controller.go | Update imports to gateway/... module path. |
| test/fake/client.go | Update imports to gateway/... module path. |
| test/e2e/e2e_test.go | Update imports to gateway/... module path. |
| main.go | Update cmd import to gateway/cmd. |
| internal/sshhandler/vault_test.go | Update imports to gateway/... module path. |
| internal/sshhandler/vault.go | Update imports to gateway/... module path. |
| internal/sshhandler/proxy_test.go | Update imports to gateway/... module path. |
| internal/sshhandler/proxy.go | Update imports to gateway/... module path. |
| internal/sshhandler/config_test.go | Update imports to gateway/... module path. |
| internal/sshhandler/config.go | Update imports to gateway/... module path. |
| internal/sshhandler/channel_pair_test.go | Update imports to gateway/... module path. |
| internal/sshhandler/channel_pair.go | Update imports to gateway/... module path. |
| internal/sshhandler/ca_test.go | Update imports to gateway/... module path. |
| internal/sshhandler/ca.go | Update imports to gateway/... module path. |
| internal/proxy/proxy_test.go | Update imports to gateway/... module path. |
| internal/proxy/proxy.go | Update imports to gateway/... module path. |
| internal/proxy/logger.go | Update imports to gateway/... module path. |
| internal/metrics/round_tripper_test.go | Update imports to gateway/... module path. |
| internal/metrics/http_middleware_test.go | Update imports to gateway/... module path. |
| internal/httphandler/wshijacker/hijacker_test.go | Update imports to gateway/... module path. |
| internal/httphandler/wshijacker/hijacker.go | Update imports to gateway/... module path. |
| internal/httphandler/wshijacker/conn_test.go | Update imports to gateway/... module path. |
| internal/httphandler/wshijacker/conn.go | Update imports to gateway/... module path. |
| internal/httphandler/http_proxy_test.go | Update imports to gateway/... module path. |
| internal/httphandler/http_proxy.go | Update imports to gateway/... module path. |
| internal/httphandler/config_test.go | Update imports to gateway/... module path. |
| internal/httphandler/config.go | Update imports to gateway/... module path. |
| internal/httphandler/audit_middleware_test.go | Update imports to gateway/... module path. |
| internal/httphandler/audit_middleware.go | Update imports to gateway/... module path. |
| internal/connect/metrics_test.go | Update imports to gateway/... module path. |
| internal/connect/metrics.go | Update imports to gateway/... module path. |
| internal/connect/listener_test.go | Update imports to gateway/... module path. |
| internal/connect/listener.go | Update imports to gateway/... module path. |
| internal/connect/connect_test.go | Update imports to gateway/... module path. |
| internal/connect/connect.go | Update imports to gateway/... module path. |
| internal/connect/conn_test.go | Update imports to gateway/... module path. |
| internal/connect/conn.go | Update imports to gateway/... module path. |
| go.mod | Rename module from k8sgateway to gateway. |
| cmd/start.go | Update imports to gateway/... module path. |
| .goreleaser.yaml | Update -X ldflags package paths to gateway/internal/version. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #242 +/- ##
=======================================
Coverage 82.72% 82.72%
=======================================
Files 35 35
Lines 2628 2628
=======================================
Hits 2174 2174
Misses 341 341
Partials 113 113
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
sghiocel
approved these changes
Mar 26, 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.
Changes
Rename
k8sgatewaymodule togateway