[architect] Extract kube connection/auth flow from client.go#19152
[architect] Extract kube connection/auth flow from client.go#19152Copilot wants to merge 2 commits into
Conversation
✅ Deploy Preview for kubestellarconsole canceled.
|
|
👋 Hey @Copilot — thanks for opening this PR!
This is an automated message. |
Signed-off-by: GitHub <noreply@github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Thanks for your pull request. Before we can look at it, you'll need to add a 'DCO signoff' to your commits. 📝 Please follow instructions in the contributing guide to update your commits with the DCO Full details of the Developer Certificate of Origin can be found at developercertificate.org. The list of commits missing DCO signoff:
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
📌 Fixes
Issue linking is handled automatically by the system.
📝 Summary of Changes
This issue requested isolating connection testing/auth detection from
pkg/agent/kube/client.gointo a focused file without behavior changes.The PR moves the connection flow and its auth helpers into
pkg/agent/kube/client_connection.go, keeping API/logic intact.TestClusterConnectionintopkg/agent/kube/client_connection.go.detectAuthMethodand colocated it with connection logic that consumes it.TestConnectionRequestandTestConnectionResultnext to the connection implementation.client.goand dropped now-unused imports.Changes Made
pkg/agent/kube/client.goto remove connection-testing/auth-detection code and unused importspkg/agent/kube/client_connection.goclient.goChecklist
Please ensure the following before submitting your PR:
git commit -s)Screenshots or Logs (if applicable)
N/A (Go refactor only, no UI changes).
👀 Reviewer Notes
Behavior is intended to remain unchanged; this is a focused code-movement refactor to improve separation of concerns in
pkg/agent/kube.