Skip to content

Commit 317738b

Browse files
waleedlatif1claude
andcommitted
fix(helm): add missing copilot path consolidation for realtime host
When copilot.host equals realtime.host but differs from app.host, copilot paths were not being routed. Added logic to consolidate copilot paths into the realtime rule for this scenario. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b96078b commit 317738b

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

helm/sim/templates/ingress-internal.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ spec:
7979
port:
8080
number: {{ $.Values.realtime.service.port }}
8181
{{- end }}
82+
{{- if and .Values.copilot.enabled .Values.ingressInternal.copilot (eq .Values.ingressInternal.copilot.host .Values.ingressInternal.realtime.host) (ne .Values.ingressInternal.copilot.host .Values.ingressInternal.app.host) }}
83+
{{- range .Values.ingressInternal.copilot.paths }}
84+
- path: {{ .path }}
85+
pathType: {{ .pathType }}
86+
backend:
87+
service:
88+
name: {{ include "sim.fullname" $ }}-copilot
89+
port:
90+
number: {{ $.Values.copilot.server.service.port }}
91+
{{- end }}
92+
{{- end }}
8293
{{- end }}
8394

8495
# Copilot service

helm/sim/templates/ingress.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ spec:
7979
port:
8080
number: {{ $.Values.realtime.service.port }}
8181
{{- end }}
82+
{{- if and .Values.copilot.enabled .Values.ingress.copilot (eq .Values.ingress.copilot.host .Values.ingress.realtime.host) (ne .Values.ingress.copilot.host .Values.ingress.app.host) }}
83+
{{- range .Values.ingress.copilot.paths }}
84+
- path: {{ .path }}
85+
pathType: {{ .pathType }}
86+
backend:
87+
service:
88+
name: {{ include "sim.fullname" $ }}-copilot
89+
port:
90+
number: {{ $.Values.copilot.server.service.port }}
91+
{{- end }}
92+
{{- end }}
8293
{{- end }}
8394

8495
# Copilot service

0 commit comments

Comments
 (0)