Skip to content

Commit

Permalink
fix: Update route for el (#151)
Browse files Browse the repository at this point in the history
* Update name convention
* Apdate annotation block

Related #151

Change-Id: I43356477139e91e4fb231d6dae752ecc5f416546
  • Loading branch information
Mykola Serdiuk committed Mar 15, 2024
1 parent c0fe77f commit c903f64
Showing 1 changed file with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
{{- if not (has "gerrit" .Values.global.gitProviders) -}}
{{ if eq .Values.global.platform "openshift" }}
{{- if eq .Values.global.platform "openshift" }}
{{- $root := $ -}}
{{- range $name, $server := .Values.gitServers }}
{{- if and (has $server.gitProvider $.Values.global.gitProviders) (and $server.eventListener.ingress (default false $server.eventListener.ingress.enabled)) }}
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: event-listener
name: event-listener-{{ $name }}
labels:
{{- include "edp-tekton.labels" . | nindent 4 }}
{{- with .Values.eventListener.ingress.annotations }}
app.edp.epam.com/gitServer: {{ $name }}
{{- include "edp-tekton.labels" $root | nindent 4 }}
{{- with $server.eventListener.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
host: el-{{ .Release.Namespace }}.{{ .Values.global.dnsWildCard }}
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: el-edp
weight: 100
port:
targetPort: http-listener
wildcardPolicy: None
host: el-{{ $name }}-{{ $root.Release.Namespace }}.{{ $root.Values.global.dnsWildCard }}
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: el-edp-{{ $name }}
weight: 100
port:
targetPort: http-listener
wildcardPolicy: None
{{- end }}
{{- end }}
{{- end }}

0 comments on commit c903f64

Please sign in to comment.