Skip to content

The MCPServers CRD is too big #2013

@jhrozek

Description

@jhrozek

The MCPServer CRD is getting big and users are reporting it can't be applied without server-side apply.

The biggest piece if the CRD is the embedded PodTemplateSpec that make up 8500 lines out of 9500 of the CRD.

We could tackle the problem as follows:

  • create a custom type (like mcpServerTemplateSpec) with a subset of fields that users will generally care about. This will be an embedded type whose fields are visible in documentation and kubectl explain.
  • for other fields add a new type (mcpServerRawTemplateSpec) that would be using runtime.RawExtension and converted into PodTemplateSpec on the operator side. This could be used for any fields but the users would not get client-side validation and docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestkubernetesItems related to Kubernetes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions