{{- if .Values.master.route.enabled }} apiVersion: route.openshift.io/v1 kind: Route metadata: namespace: {{ template "jenkins.namespace" . }} labels: app: {{ template "jenkins.fullname" . }} chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" release: "{{ .Release.Name }}" heritage: "{{ .Release.Service }}" component: "{{ .Release.Name }}-{{ .Values.master.componentName }}" {{- if .Values.master.route.labels }} {{ toYaml .Values.master.route.labels | indent 4 }} {{- end }} {{- if .Values.master.route.annotations }} annotations: {{ toYaml .Values.master.route.annotations | indent 4 }} {{- end }} name: {{ template "jenkins.fullname" . }} spec: host: {{ .Values.master.route.path }} port: targetPort: http tls: insecureEdgeTerminationPolicy: Redirect termination: edge to: kind: Service name: {{ template "jenkins.fullname" . }} weight: 100 wildcardPolicy: None {{- end }}