Skip to content

Commit 7ef30d3

Browse files
feat(internal-gateway): add promotion-orchestrator route
1 parent 526735e commit 7ef30d3

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

charts/internal-gateway/templates/_location_map.tpl

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,18 @@ nginx:
241241
locationDirectives:
242242
{{- $presets.locationDirectives | toYaml | nindent 10 }}
243243

244+
/2.0/api/promotion-orchestrator:
245+
enabled: true
246+
proxy:
247+
host: {{ index $endpoints.serviceEndpoints "argo-platform-promotion-orchestrator" "svc" }}
248+
port: {{ index $endpoints.serviceEndpoints "argo-platform-promotion-orchestrator" "port" }}
249+
proxyPassSnippet:
250+
{{- $presets.authHeaderSet | toYaml | nindent 12 }}
251+
locationSnippet:
252+
{{- $presets.locationSnippet | toYaml | nindent 10 }}
253+
locationDirectives:
254+
{{- $presets.locationDirectives | toYaml | nindent 10 }}
255+
244256
/2.0:
245257
enabled: true
246258
proxy:
@@ -281,17 +293,6 @@ nginx:
281293
locationDirectives:
282294
{{- $presets.locationDirectives | toYaml | nindent 10 }}
283295

284-
/2.0/api/promotion-orchestrator:
285-
enabled: true
286-
proxy:
287-
host: {{ index $endpoints.serviceEndpoints "argo-platform-promotion-orchestrator" "svc" }}
288-
port: {{ index $endpoints.serviceEndpoints "argo-platform-promotion-orchestrator" "port" }}
289-
proxyPassSnippet:
290-
{{- $presets.authHeaderSet | toYaml | nindent 12 }}
291-
locationSnippet:
292-
{{- $presets.locationSnippet | toYaml | nindent 10 }}
293-
locationDirectives:
294-
{{- $presets.locationDirectives | toYaml | nindent 10 }}
295296
{{- end }}
296297

297298
{{- define "internal-gateway.nginx-config" }}

0 commit comments

Comments
 (0)