Skip to content

Remove Deprecated Port from MCPRemoteProxy Types #4267

Closed

Description

@ChrisJBurns

Description

Remove the deprecated Port field from MCPRemoteProxySpec and simplify its helper method.

Implementation Notes

File: cmd/thv-operator/api/v1alpha1/mcpremoteproxy_types.go

Field to remove: Port (line ~48) — proxyPort is the canonical field.

Note: MCPRemoteProxy is being deprecated by RFC-0057 in favour of MCPRemoteEndpoint. This cleanup is minimal — just removing the deprecated field alias to keep the API clean for the remaining v1alpha2 lifetime.

Post-implementation: Run task gen.

Acceptance Criteria

  • Port field removed from MCPRemoteProxySpec
  • Helper method simplified
  • task gen succeeds

Activity

  1. ChrisJBurns commented on Apr 3, 2026

    @ChrisJBurns
    CollaboratorAuthor

    This was fully addressed in PR #4467 (merged 2026-03-31, commit 029ecbd), which removed six deprecated CRD fields including MCPRemoteProxy.spec.port.

    All three acceptance criteria are met:

    • Port field removed from MCPRemoteProxySpec -- the Port int32 field and its json:"port,omitempty" tag were deleted.
    • Helper method simplified -- GetProxyPort() was reduced from a multi-branch fallback to a straightforward two-line method that checks ProxyPort and falls back to 8080.
    • task gen succeeds -- the PR passed CI, which includes code generation.

    Thanks for filing this!

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

    breaking-changekubernetesoperator

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions