Skip to content

refactor(k8s): extract client adapters to separate file#13

Open
rafeegnash wants to merge 1 commit intok8-gcp-supportfrom
issue-73-agent-refactoring
Open

refactor(k8s): extract client adapters to separate file#13
rafeegnash wants to merge 1 commit intok8-gcp-supportfrom
issue-73-agent-refactoring

Conversation

@rafeegnash
Copy link
Copy Markdown

Summary

  • Extracts all client adapter types from agent.go into agent_adapters.go
  • Reduces agent.go from 2760 to 2606 lines
  • Improves code organization by grouping related adapter implementations

Adapters Extracted

Adapter Interface
clientAdapter workloads.K8sClient
networkingClientAdapter networking.K8sClient
storageClientAdapter storage.K8sClient
helmClientAdapter helm.HelmClient
sreClientAdapter sre.K8sClient
telemetryClientAdapter telemetry.K8sClient

Test Plan

  • Build passes
  • All k8s package tests pass
  • No functional changes, only code reorganization

Closes bgdnvk#73

Extract all client adapter types from agent.go into agent_adapters.go
to improve code organization. This reduces agent.go from 2760 to 2606
lines while keeping all adapter implementations in one dedicated file.

Adapters extracted:
- clientAdapter (workloads.K8sClient)
- networkingClientAdapter (networking.K8sClient)
- storageClientAdapter (storage.K8sClient)
- helmClientAdapter (helm.HelmClient)
- sreClientAdapter (sre.K8sClient)
- telemetryClientAdapter (telemetry.K8sClient)

Refs bgdnvk#73

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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