First draft of the SMO package based on the ONAP charts
[it/dep.git] / smo-install / oran_oom / ric-common / templates / _ingress_controller.tpl
1 ################################################################################
2 #   Copyright (c) 2019 AT&T Intellectual Property.                             #
3 #                                                                              #
4 #   Licensed under the Apache License, Version 2.0 (the "License");            #
5 #   you may not use this file except in compliance with the License.           #
6 #   You may obtain a copy of the License at                                    #
7 #                                                                              #
8 #       http://www.apache.org/licenses/LICENSE-2.0                             #
9 #                                                                              #
10 #   Unless required by applicable law or agreed to in writing, software        #
11 #   distributed under the License is distributed on an "AS IS" BASIS,          #
12 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   #
13 #   See the License for the specific language governing permissions and        #
14 #   limitations under the License.                                             #
15 ################################################################################
16
17 {{- define "common.ingresscontroller.url.platform" -}}
18   {{- $keylist := list "common" "ingresscontroller" "url" "platform" -}}
19   {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
20   {{- $url := include "locate" $ctx -}}
21   {{- if not (empty $url) -}}
22     {{- $url -}}
23   {{- else -}}
24     {{- printf "ric-entry" -}}
25   {{- end -}}
26 {{- end -}}
27
28 {{- define "common.ingresscontroller.url.aux" -}}
29   {{- $keylist := list "common" "ingresscontroller" "url" "aux" -}}
30   {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
31   {{- $url := include "locate" $ctx -}}
32   {{- if not (empty $url) -}}
33     {{- $url -}}
34   {{- else -}}
35     {{- printf "aux-entry" -}}
36   {{- end -}}
37 {{- end -}}
38
39
40 {{- define "common.ingresscontroller.url.dashboard" -}}
41   {{- $keylist := list "common" "ingresscontroller" "url" "dashboard" -}}
42   {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
43   {{- $url := include "locate" $ctx -}}
44   {{- if not (empty $url) -}}
45     {{- $url -}}
46   {{- else -}}
47     {{- printf "dashboard-entry" -}}
48   {{- end -}}
49 {{- end -}}
50
51 {{- define "common.ingresscontroller.port.http" -}}
52   {{- $keylist := list "common" "ingresscontroller" "port" "http" -}}
53   {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
54   {{- $port := include "locate" $ctx -}}
55   {{- if not (empty $port) -}}
56     {{- $port -}}
57   {{- else -}}
58     {{- printf "32080" -}}
59   {{- end -}}
60 {{- end -}}
61
62 {{- define "common.ingresscontroller.port.https" -}}
63   {{- $keylist := list "common" "ingresscontroller" "port" "https" -}}
64   {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
65   {{- $port := include "locate" $ctx -}}
66   {{- if not (empty $port) -}}
67     {{- $port -}}
68   {{- else -}}
69     {{- printf "32443" -}}
70   {{- end -}}
71 {{- end -}}