Skip to content

Do we need the tool config and the external auth controllers? #2662

Closed

Description

@dmartinol

The tool config and the external auth controllers both trigger a new server reconciliation by updating one annotation in the referencing mcpservers.
Anyway, the server controller also watches the external auth resources to trigger the server reconciliation when the external auth get updated:

Watches(&mcpv1alpha1.MCPExternalAuthConfig{}, externalAuthConfigHandler).

Basically, this makes the external auth controller useless, IIUC.
Why not using the same watching mechanism for the tool config and get rid of both controllers at the end?

Activity

  1. added
    kubernetes
    on Nov 19, 2025
  2. added
    question
    on Nov 19, 2025
  3. ChrisJBurns commented on Jun 24, 2026

    @ChrisJBurns
    Collaborator

    The controllers themselves aren't redundant — they own validation, Status.ConfigHash, the Valid condition, finalizers/deletion-protection, and reference counting, none of which the MCPServer's Watches(...) provides. The watch only wakes the server; the controller produces the state it reads.

    What is redundant is the annotation-bump trigger, and that's already tracked (and assigned) in #4623 — drop the redundant pokes (ExternalAuth/Webhook), and add the missing MCPToolConfig watch before removing its poke.

    Closing as a duplicate of #4623.

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

    kubernetesoperatorquestion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions