blob: 3550380ee4c84de04dad856776262f51ce160ae4 [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" . }}
8 {{- if .Values.renderHelmLabels }}
9 "helm.sh/chart": "{{ template "jenkins.label" .}}"
10 {{- end }}
11 release: "{{ .Release.Name }}"
12 heritage: "{{ .Release.Service }}"
13 component: "{{ .Release.Name }}-{{ .Values.controller.componentName }}"
14{{- if .Values.controller.route.labels }}
15{{ toYaml .Values.controller.route.labels | indent 4 }}
16{{- end }}
17{{- if .Values.controller.route.annotations }}
18 annotations:
19{{ toYaml .Values.controller.route.annotations | indent 4 }}
20{{- end }}
21 name: {{ template "jenkins.fullname" . }}
22spec:
23 host: {{ .Values.controller.route.path }}
24 port:
25 targetPort: http
26 tls:
27 insecureEdgeTerminationPolicy: Redirect
28 termination: edge
29 to:
30 kind: Service
31 name: {{ template "jenkins.fullname" . }}
32 weight: 100
33 wildcardPolicy: None
34{{- end }}