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.ric" -}}
24 {{- if .Values.global -}}
25 {{- if .Values.global.ingressurl -}}
26 {{- if .Values.global.ingressurl.ric -}}
27 {{- printf "%s" .Values.global.ingressurl.ric -}}
29 {{- printf "ric-entry" -}}
32 {{- printf "ric-entry" -}}
35 {{- printf "ric-entry" -}}
40 {{- define "common.ingressurl.aux" -}}
41 {{- if .Values.global -}}
42 {{- if .Values.global.ingressurl -}}
43 {{- if .Values.global.ingressurl.aux -}}
44 {{- printf "%s" .Values.global.ingressurl.aux -}}
46 {{- printf "aux-entry" -}}
49 {{- printf "aux-entry" -}}
52 {{- printf "aux-entry" -}}
58 ####################### Ingress Controller Ports ###########################################
59 ## Currently the below values are hard-coded due to the fact that kong ingress controller #
60 ## helm charts are not using this common template. We need to make sure that these values #
61 ## agree with the values in the kong helm charts values.yaml files. #
62 ############################################################################################
63 {{- define "common.ingresshttpport" -}}
64 {{- printf "32080" -}}
67 {{- define "common.ingresshttpsport" -}}
68 {{- printf "32443" -}}