1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
3 # Copyright (c) 2019 Nokia. #
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 #
9 # http://www.apache.org/licenses/LICENSE-2.0 #
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 ################################################################################
19 Resolve the ingress controller addresses.
22 ####################### Service URL #####################################
23 {{- define "common.ingressurl.ricplt" -}}
24 {{- if .Values.global -}}
25 {{- if .Values.global.ingressurl -}}
26 {{- if .Values.global.ingressurl.platform -}}
27 {{- printf "%s" .Values.global.ingressurl.platform -}}
29 {{- printf "ricplt-entry" -}}
32 {{- printf "ricplt-entry" -}}
35 {{- printf "ricplt-entry" -}}
39 {{- define "common.ingressurl.ricxapp" -}}
40 {{- if .Values.global -}}
41 {{- if .Values.global.ingressurl -}}
42 {{- if .Values.global.ingressurl.xapp -}}
43 {{- printf "%s" .Values.global.ingressurl.xapp -}}
45 {{- printf "ricxapp-entry" -}}
48 {{- printf "ricxapp-entry" -}}
51 {{- printf "ricxapp-entry" -}}
55 {{- define "common.ingressurl.ricaux" -}}
56 {{- if .Values.global -}}
57 {{- if .Values.global.ingressurl -}}
58 {{- if .Values.global.ingressurl.aux -}}
59 {{- printf "%s" .Values.global.ingressurl.aux -}}
61 {{- printf "ricaux-entry" -}}
64 {{- printf "ricaux-entry" -}}
67 {{- printf "ricaux-entry" -}}
71 {{- define "common.ingressurl.ricinfra" -}}
72 {{- if .Values.global -}}
73 {{- if .Values.global.ingressurl -}}
74 {{- if .Values.global.ingressurl.infra -}}
75 {{- printf "%s" .Values.global.ingressurl.infra -}}
77 {{- printf "ricinfra-entry" -}}
80 {{- printf "ricinfra-entry" -}}
83 {{- printf "ricinfra-entry" -}}
87 {{- define "common.ingressurl.localdocker" -}}
88 {{- if .Values.global -}}
89 {{- if .Values.global.ingressurl -}}
90 {{- if .Values.global.ingressurl.localdocker -}}
91 {{- printf "%s" .Values.global.ingressurl.localdocker -}}
93 {{- printf "docker-entry" -}}
96 {{- printf "docker-entry" -}}
99 {{- printf "docker-entry" -}}
103 {{- define "common.ingressurl.localhelm" -}}
104 {{- if .Values.global -}}
105 {{- if .Values.global.ingressurl -}}
106 {{- if .Values.global.ingressurl.localhelm -}}
107 {{- printf "%s" .Values.global.ingressurl.localhelm -}}
109 {{- printf "helm-entry" -}}
112 {{- printf "helm-entry" -}}
115 {{- printf "helm-entry" -}}
120 {{- define "common.ingressurl.localnexus" -}}
121 {{- if .Values.global -}}
122 {{- if .Values.global.ingressurl -}}
123 {{- if .Values.global.ingressurl.localnexus -}}
124 {{- printf "%s" .Values.global.ingressurl.localnexus -}}
126 {{- printf "nexus-entry" -}}
129 {{- printf "nexus-entry" -}}
132 {{- printf "nexus-entry" -}}
141 ####################### Ingress Controller Ports ###########################################
142 ## Currently the below values are hard-coded due to the fact that kong ingress controller #
143 ## helm charts are not using this common template. We need to make sure that these values #
144 ## agree with the values in the kong helm charts values.yaml files. #
145 ############################################################################################
146 {{- define "common.ingresshttpport.ricplt" -}}
147 {{- printf "30080" -}}
150 {{- define "common.ingresshttpsport.ricplt" -}}
151 {{- printf "30443" -}}
155 {{- define "common.ingresshttpport.ricxapp" -}}
156 {{- printf "31080" -}}
160 {{- define "common.ingresshttpsport.ricxapp" -}}
161 {{- printf "31443" -}}
165 {{- define "common.ingresshttpport.ricaux" -}}
166 {{- printf "32080" -}}
169 {{- define "common.ingresshttpsport.ricaux" -}}
170 {{- printf "32443" -}}
174 {{- define "common.ingresshttpport.ricinfra" -}}
175 {{- printf "32180" -}}
180 {{- define "common.ingresshttpsport.ricinfra" -}}
181 {{- printf "32543" -}}