Files
2026-04-27 21:52:01 +07:00

33 lines
883 B
YAML

{{- if and .Values.OpenShift.route.enabled .Values.OpenShift.enabled -}}
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: {{ template "sonarqube.fullname" . }}
labels:
{{- include "sonarqube.labels" . | nindent 4 }}
{{- with .Values.OpenShift.route.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.OpenShift.route.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.OpenShift.route.host }}
host: {{ . }}
{{- end }}
{{- with .Values.OpenShift.route.path }}
path: {{ . }}
{{- end }}
to:
kind: Service
name: {{ include "sonarqube.fullname" . }}
port:
targetPort: http
{{- with .Values.OpenShift.route.tls }}
tls: {{- toYaml . | nindent 4 }}
{{- end -}}
{{- with .Values.OpenShift.route.wildcardPolicy }}
wildcardPolicy: {{ . }}
{{- end -}}
{{- end -}}