-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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.
There are no files selected for viewing
36 changes: 20 additions & 16 deletions
36
charts/pipelines-library/templates/resources/route-eventlistener.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |