blob: 9144e105c28248c2ae4c93e726c062d50565254c [file] [log] [blame]
Giorgi Lekveishvili35982662024-04-05 13:05:40 +04001{{- if .Values.controller.route.enabled }}
2apiVersion: route.openshift.io/v1
3kind: Route
4metadata:
5 namespace: {{ template "jenkins.namespace" . }}
6 labels:
7 app: {{ template "jenkins.fullname" . }}
Giorgi Lekveishvili35982662024-04-05 13:05:40 +04008 release: "{{ .Release.Name }}"
9 heritage: "{{ .Release.Service }}"
10 component: "{{ .Release.Name }}-{{ .Values.controller.componentName }}"
gio20157e82026-07-22 13:10:48 +040011 {{- include "jenkins.labels" . | nindent 4 }}
Giorgi Lekveishvili35982662024-04-05 13:05:40 +040012{{- if .Values.controller.route.labels }}
13{{ toYaml .Values.controller.route.labels | indent 4 }}
14{{- end }}
15{{- if .Values.controller.route.annotations }}
16 annotations:
17{{ toYaml .Values.controller.route.annotations | indent 4 }}
18{{- end }}
19 name: {{ template "jenkins.fullname" . }}
20spec:
21 host: {{ .Values.controller.route.path }}
22 port:
23 targetPort: http
24 tls:
25 insecureEdgeTerminationPolicy: Redirect
26 termination: edge
27 to:
28 kind: Service
29 name: {{ template "jenkins.fullname" . }}
30 weight: 100
31 wildcardPolicy: None
32{{- end }}