Skip to content

Extend ForResource to support unknown resources with client pool #2337

@Kunal1522

Description

@Kunal1522

Extend ForResource to support unknown resources with client pool

File: pkg/client/informers/externalversions/generic.go:51

Currently ForResource() only handles hardcoded resource types via switch statement. Need to extend it to dynamically handle unknown/arbitrary resources using a client pool.

Current behavior:

  • Only supports gameservers and gameserversets
  • Returns error for unrecognized resources

Expected:

  • Support arbitrary GroupVersionResources
  • Use dynamic client pool for unknown types

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions