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.
21 {{- define "common.ingressurl.ricplt" -}}
22 {{- if .Values.kongplatform -}}
23 {{- if .Values.kongplatform.ingressurlOverride -}}
24 {{- printf "%s" .Values.kongplatform.ingressurlOverride -}}
26 {{- printf "ricplt-entry" -}}
29 {{- printf "ricplt-entry" -}}
35 {{- define "common.ingresshttpport.ricplt" -}}
36 {{- if .Values.kongplatform -}}
37 {{- if .Values.kongplatform.ingresshttpportOverride -}}
38 {{- printf "%.0f" .Values.kongplatform.ingresshttpportOverride -}}
40 {{- printf "30080" -}}
43 {{- printf "30080" -}}
49 {{- define "common.ingresshttpsport.ricplt" -}}
50 {{- if .Values.kongplatform -}}
51 {{- if .Values.kongplatform.ingresshttpsportOverride -}}
52 {{- printf "%.0f" .Values.kongplatform.ingresshttpsportOverride -}}
54 {{- printf "30443" -}}
57 {{- printf "30443" -}}
76 {{- define "common.ingressurl.ricxapp" -}}
77 {{- if .Values.kongxapp -}}
78 {{- if .Values.kongxapp.ingressurlOverride -}}
79 {{- printf "%s" .Values.kongxapp.ingressurlOverride -}}
81 {{- printf "ricxapp-entry" -}}
84 {{- printf "ricxapp-entry" -}}
90 {{- define "common.ingresshttpport.ricxapp" -}}
91 {{- if .Values.kongxapp -}}
92 {{- if .Values.kongxapp.ingresshttpportOverride -}}
93 {{- printf "%.0f" .Values.kongxapp.ingresshttpportOverride -}}
95 {{- printf "31080" -}}
98 {{- printf "31080" -}}
104 {{- define "common.ingresshttpsport.ricxapp" -}}
105 {{- if .Values.kongxapp -}}
106 {{- if .Values.kongxapp.ingresshttpsportOverride -}}
107 {{- printf "%.0f" .Values.kongxapp.ingresshttpsportOverride -}}
109 {{- printf "31443" -}}
112 {{- printf "31443" -}}
148 {{- define "common.ingressurl.ricaux" -}}
149 {{- if .Values.kongaux -}}
150 {{- if .Values.kongaux.ingressurlOverride -}}
151 {{- printf "%s" .Values.kongaux.ingressurlOverride -}}
153 {{- printf "ricaux-entry" -}}
156 {{- printf "ricaux-entry" -}}
164 {{- define "common.ingresshttpport.ricaux" -}}
165 {{- if .Values.kongaux -}}
166 {{- if .Values.kongaux.ingresshttpportOverride -}}
167 {{- printf "%.0f" .Values.kongaux.ingresshttpportOverride -}}
169 {{- printf "32080" -}}
172 {{- printf "32080" -}}
178 {{- define "common.ingresshttpsport.ricaux" -}}
179 {{- if .Values.kongaux -}}
180 {{- if .Values.kongaux.ingresshttpsportOverride -}}
181 {{- printf "%.0f" .Values.kongaux.ingresshttpsportOverride -}}
183 {{- printf "32443" -}}
186 {{- printf "32443" -}}