Skip to content

fix: mcp enable checks for deployment and service#209

Merged
sk-portkey merged 1 commit into
mainfrom
fix/mcp_enabled_checks
Jun 22, 2026
Merged

fix: mcp enable checks for deployment and service#209
sk-portkey merged 1 commit into
mainfrom
fix/mcp_enabled_checks

Conversation

@sk-portkey

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes Helm templating conditionals for MCP-related ports so they only render when MCP is actually enabled, avoiding the prior behavior where a non-empty string result from include could make the condition always evaluate as “true”.

Changes:

  • Update Service ports list to gate the MCP port on an explicit "true" value from mcp.enabled.
  • Update Deployment container ports list to gate the MCP container port on an explicit "true" value from mcp.enabled.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
charts/portkey-gateway/templates/gateway/service.yaml Fixes MCP port conditional to correctly evaluate the mcp.enabled helper result.
charts/portkey-gateway/templates/gateway/deployment.yaml Fixes MCP container port conditional to correctly evaluate the mcp.enabled helper result.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sk-portkey sk-portkey merged commit 0723299 into main Jun 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants