Skip to content

Commit f0e5b44

Browse files
feat(internal-gateway): add promotion-orchestrator route (#117)
1 parent e1b0720 commit f0e5b44

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

.github/workflows/lint-test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ jobs:
9797
# Do not run `ct install` for cf-common (library chart) or builder/runner
9898
exit 0
9999
fi
100-
helm repo add cf-common https://chartmuseum.codefresh.io/cf-common
101100
ct install --config "ct.yaml"
102101
103102
unittest-charts:

charts/internal-gateway/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
appVersion: v0.0.0
33
description: A Helm chart for Codefresh Internal Gateway
44
name: internal-gateway
5-
version: 0.10.6
5+
version: 0.11.0
66
home: https://github.com/codefresh-io/helm-charts
77
keywords:
88
- codefresh

charts/internal-gateway/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# internal-gateway
22

3-
![Version: 0.10.6](https://img.shields.io/badge/Version-0.10.6-informational?style=flat-square) ![AppVersion: v0.0.0](https://img.shields.io/badge/AppVersion-v0.0.0-informational?style=flat-square)
3+
![Version: 0.11.0](https://img.shields.io/badge/Version-0.11.0-informational?style=flat-square) ![AppVersion: v0.0.0](https://img.shields.io/badge/AppVersion-v0.0.0-informational?style=flat-square)
44

55
A Helm chart for Codefresh Internal Gateway
66

charts/internal-gateway/templates/_default_values.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ codefresh:
4949
argo-platform-broadcaster:
5050
svc: '{{ index .Values.codefresh "argo-platform-broadcaster-svc" }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}'
5151
port: {{ index .Values.codefresh "argo-platform-broadcaster-port" }}
52+
argo-platform-promotion-orchestrator:
53+
svc: '{{ index .Values.codefresh "argo-platform-promotion-orchestrator-svc" }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}'
54+
port: {{ index .Values.codefresh "argo-platform-promotion-orchestrator-port" }}
5255
argo-hub:
5356
svc: '{{ .Release.Name }}-{{ index .Values.codefresh "argo-hub-svc" }}.{{ .Release.Namespace }}.svc.{{ .Values.global.clusterDomain }}'
5457
port: {{ index .Values.codefresh "argo-hub-port" }}

charts/internal-gateway/templates/_location_map.tpl

Lines changed: 13 additions & 0 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:
@@ -280,6 +292,7 @@ nginx:
280292
{{- $presets.locationSnippet | toYaml | nindent 10 }}
281293
locationDirectives:
282294
{{- $presets.locationDirectives | toYaml | nindent 10 }}
295+
283296
{{- end }}
284297

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

charts/internal-gateway/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ codefresh:
5454
argo-platform-broadcaster-svc: argo-platform-broadcaster
5555
argo-platform-broadcaster-port: 80
5656

57+
argo-platform-promotion-orchestrator-svc: argo-platform-promotion-orchestrator
58+
argo-platform-promotion-orchestrator-port: 80
59+
5760
argo-hub-svc: argo-hub-platform
5861
argo-hub-port: 80
5962

0 commit comments

Comments
 (0)