| Giorgi Lekveishvili | 3598266 | 2024-04-05 13:05:40 +0400 | [diff] [blame^] | 1 | {{- if .Values.controller.route.enabled }} |
| 2 | apiVersion: route.openshift.io/v1 |
| 3 | kind: Route |
| 4 | metadata: |
| 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" . }} |
| 22 | spec: |
| 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 }} |