Moving dev back to LF Gerrit
[it/dep.git] / ric-aux / 80-Auxiliary-Functions / helm / dashboard / templates / _genurl.tpl
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
3 #   Copyright (c) 2019 Nokia.                                                  #
4 #                                                                              #
5 #   Licensed under the Apache License, Version 2.0 (the "License");            #
6 #   you may not use this file except in compliance with the License.           #
7 #   You may obtain a copy of the License at                                    #
8 #                                                                              #
9 #       http://www.apache.org/licenses/LICENSE-2.0                             #
10 #                                                                              #
11 #   Unless required by applicable law or agreed to in writing, software        #
12 #   distributed under the License is distributed on an "AS IS" BASIS,          #
13 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
14 #   See the License for the specific language governing permissions and        #
15 #   limitations under the License.                                             #
16 ################################################################################
17 {{/* vim: set filetype=mustache: */}}
18 {{/*
19 Generate the URLS of the endpoints.
20 */}}
21
22
23 {{- define "dashboard.prefix.a1mediator" -}}
24   {{- $ingress := ( include "common.ingressurl.ric" . ) -}}
25   {{- if .Values.dashboard.a1med.url.prefix -}}
26     {{- printf "%s" .Values.dashboard.a1med.url.prefix -}}
27   {{- else -}}
28     {{- printf "http://%s/a1mediator" $ingress -}}
29   {{- end -}}
30 {{- end -}}
31
32 {{- define "dashboard.prefix.anrxapp" -}}
33   {{- $ingress := ( include "common.ingressurl.ric" . ) -}}
34   {{- if .Values.dashboard.anrxapp.url.prefix -}}
35     {{- printf "%s" .Values.dashboard.anrxapp.url.prefix -}}
36   {{- else -}}
37     {{- printf "http://%s/anr" $ingress -}}
38   {{- end -}}
39 {{- end -}}
40
41 {{- define "dashboard.prefix.e2mgr" -}}
42   {{- $ingress := ( include "common.ingressurl.ric" . ) -}}
43   {{- if .Values.dashboard.e2mgr.url.prefix -}}
44     {{- printf "%s" .Values.dashboard.e2mgr.url.prefix -}}
45   {{- else -}}
46     {{- printf "http://%s/e2mgr" $ingress -}}
47   {{- end -}}
48 {{- end -}}
49
50 {{- define "dashboard.prefix.appmgr" -}}
51   {{- $ingress := ( include "common.ingressurl.ric" . ) -}}
52   {{- if .Values.dashboard.appmgr.url.prefix -}}
53     {{- printf "%s" .Values.dashboard.appmgr.url.prefix -}}
54   {{- else -}}
55     {{- printf "http://%s/appmgr" $ingress -}}
56   {{- end -}}
57 {{- end -}}
58