Skip to content

[architect] Extract networking/log handlers from pkg/api/handlers/mcp_resources.go #19095

@clubanderson

Description

@clubanderson

Part of #19063

Scope

Move networking and log retrieval handlers out of pkg/api/handlers/mcp_resources.go into focused files.

Target files

  • pkg/api/handlers/mcp_resources.go
  • pkg/api/handlers/mcp_resources_network.go
  • pkg/api/handlers/mcp_resources_logs.go

Functions in scope

  • GetIngresses
  • GetNetworkPolicies
  • GetPodNetworkStats
  • GetPodLogs

Acceptance criteria

  • Networking handlers and pod-log retrieval no longer live in the catch-all file
  • Stream/response behavior for logs stays unchanged
  • Existing MCP handler tests stay green

Metadata

Metadata

Labels

architecturehelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.tech-debt

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions