Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion charts/portkey-gateway/templates/gateway/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,29 @@ spec:
name: mcp
{{- end }}
selector:
{{- include "portkeyenterprise.selectorLabels" . | nindent 4 }}
{{- include "portkeyenterprise.selectorLabels" . | nindent 4 }}
---
{{- if and .Values.mcpService.enabled (eq (include "mcp.enabled" .) "true") }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "portkeyenterprise.fullname" . }}-mcp
labels:
{{- include "gateway.labels" . }}
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The include statement is missing the 'nindent' directive, which will cause incorrect YAML indentation. This should be {{- include "gateway.labels" . | nindent 4 }}.

Copilot uses AI. Check for mistakes.
{{- with .Values.mcpService.additionalLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.mcpService.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.mcpService.type }}
ports:
- port: {{ .Values.mcpService.port }}
targetPort: mcp
protocol: TCP
name: mcp
selector:
{{- include "portkeyenterprise.selectorLabels" . | nindent 4 }}
{{- end }}
7 changes: 7 additions & 0 deletions charts/portkey-gateway/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ service:
additionalLabels: {}
annotations: {}

mcpService:
enabled: false
type: ClusterIP
port: 80
additionalLabels: {}
annotations: {}

ingress:
enabled: false
hostname: ""
Expand Down