Skip to content

chore: Rename k8sgateway module to gateway#242

Merged
minhtule merged 1 commit intomasterfrom
chore/mt/rename-package
Mar 26, 2026
Merged

chore: Rename k8sgateway module to gateway#242
minhtule merged 1 commit intomasterfrom
chore/mt/rename-package

Conversation

@minhtule
Copy link
Copy Markdown
Contributor

Changes

Rename k8sgateway module to gateway

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.mod module path to gateway.
  • Rewrite all internal/test/tooling imports from k8sgateway/... to gateway/....
  • Update GoReleaser ldflags -X package 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
Copy link
Copy Markdown

codecov Bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.72%. Comparing base (5853339) to head (0e17197).
⚠️ Report is 4 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #242   +/-   ##
=======================================
  Coverage   82.72%   82.72%           
=======================================
  Files          35       35           
  Lines        2628     2628           
=======================================
  Hits         2174     2174           
  Misses        341      341           
  Partials      113      113           
Flag Coverage Δ
integration 48.62% <ø> (ø)
unit 77.43% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cmd/start.go 53.12% <ø> (ø)
internal/connect/conn.go 80.55% <ø> (ø)
internal/connect/connect.go 97.40% <ø> (ø)
internal/connect/listener.go 86.02% <ø> (ø)
internal/connect/metrics.go 100.00% <ø> (ø)
internal/httphandler/audit_middleware.go 98.48% <ø> (ø)
internal/httphandler/config.go 76.19% <ø> (ø)
internal/httphandler/http_proxy.go 86.41% <ø> (ø)
internal/httphandler/wshijacker/conn.go 85.00% <ø> (ø)
internal/httphandler/wshijacker/hijacker.go 100.00% <ø> (ø)
... and 7 more
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@minhtule minhtule merged commit 1b44f9f into master Mar 26, 2026
18 checks passed
@minhtule minhtule deleted the chore/mt/rename-package branch March 26, 2026 01:10
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.

3 participants