add sonarqube
This commit is contained in:
32
manifest/sonarqube/templates/route.yaml
Normal file
32
manifest/sonarqube/templates/route.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
{{- 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 -}}
|
||||
Reference in New Issue
Block a user