Skip to content

[architect] Extract core resource handlers from pkg/api/handlers/mcp_resources.go #19098

@clubanderson

Description

@clubanderson

Part of #19063

Scope

Move the core-resource read handlers out of pkg/api/handlers/mcp_resources.go into a focused file such as pkg/api/handlers/mcp_resources_core.go.

Target files

  • pkg/api/handlers/mcp_resources.go
  • pkg/api/handlers/mcp_resources_core.go

Functions in scope

  • GetConfigMaps
  • GetSecrets
  • GetServiceAccounts

Acceptance criteria

  • Core-resource handlers no longer live in the catch-all file
  • Any tiny helpers used only by those handlers move with them
  • Behavior and existing tests stay unchanged

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