1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
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 #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
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 ################################################################################
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) -}}
24 {{- printf "ric-entry" -}}
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) -}}
35 {{- printf "aux-entry" -}}
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) -}}
47 {{- printf "dashboard-entry" -}}
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) -}}
58 {{- printf "32080" -}}
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) -}}
69 {{- printf "32443" -}}