Skip to content

Workload CRD Config Reference Updates #4253

Closed
5 of 5 issues completed
Closed

Description

@ChrisJBurns

As a platform engineer deploying MCP servers,
I want MCPServer, MCPRemoteProxy, and VirtualMCPServer to reference shared MCPOIDCConfig and MCPTelemetryConfig resources,
so that workloads use centralized configuration without duplication.

Size: XL
Dependencies: STORY-02 (MCPOIDCConfig), STORY-03 (MCPTelemetryConfig)
Labels: operator, api, controller

Context

With MCPOIDCConfig and MCPTelemetryConfig CRDs available (STORY-02, STORY-03), workload CRDs need to be updated to reference them. Each workload can either reference a shared config CRD or specify inline configuration. Workload controllers must resolve references, merge per-server overrides, and fail closed if a referenced config is missing or not ready.

Acceptance Criteria

  • MCPServer spec accepts oidcConfigRef pointing to an MCPOIDCConfig with per-server audience and scopes overrides
  • MCPServer spec accepts telemetryConfigRef pointing to an MCPTelemetryConfig with per-server serviceName
  • Inline config remains supported — CEL enforces ref and inline are mutually exclusive
  • MCPRemoteProxy spec accepts oidcConfigRef with same pattern
  • VirtualMCPServer spec accepts oidcConfigRef for incoming auth
  • MCPServer controller resolves config refs, merges per-server overrides, and passes resolved config to workload
  • MCPRemoteProxy controller resolves OIDC config refs
  • VirtualMCPServer controller resolves OIDC config ref
  • All workload controllers fail closed: if a referenced config CRD does not exist or is not Ready, the workload enters Failed phase with a descriptive condition
  • Config hash tracked in workload status for change detection
  • Unit tests cover ref resolution, inline fallback, fail-closed behavior, and override merging
  • Integration tests in cmd/thv-operator/test-integration/ cover cross-CRD reference resolution for all workload types
  • Architecture documentation (docs/arch/09-operator-architecture.md) updated with new reference patterns
  • Helm chart RBAC examples updated for platform team / app team separation
  • Example manifests and migration guide provided

Deferred / tracked separately

Sub-issues

Sub-issues

5 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. added
    enhancement
    kubernetes
    size/XL
    on Mar 19, 2026
  2. added
    api
    on Mar 19, 2026
  3. added a commit that references this issue on Apr 1, 2026
    b9307b1
  4. added 4 commits that reference this issue on Apr 1, 2026
    c1be0e6
    cd948c6
    129c9bb
    059629c
  5. added a commit that references this issue on Apr 2, 2026
    862f9b8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apibreaking-changecontrollerenhancementkubernetesoperatorsize/XL

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions