X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-common%2FCommon-Template%2Fhelm%2Fric-common%2Ftemplates%2F_ingresscontroller.tpl;h=2106fa4d6de4ac3f4516356c51d7ea4e9f42f4fa;hb=581a3a371b3d0adfb6d9c831ad6877c3e07df0cd;hp=f3fcab0598cc589c41fefcfe78d7c4cd24b5feb5;hpb=4258a602a4b8fe2bd0995f0926b1ed06e0f7d35c;p=it%2Fdep.git diff --git a/ric-common/Common-Template/helm/ric-common/templates/_ingresscontroller.tpl b/ric-common/Common-Template/helm/ric-common/templates/_ingresscontroller.tpl index f3fcab05..2106fa4d 100644 --- a/ric-common/Common-Template/helm/ric-common/templates/_ingresscontroller.tpl +++ b/ric-common/Common-Template/helm/ric-common/templates/_ingresscontroller.tpl @@ -20,91 +20,45 @@ */}} ####################### Service URL ##################################### -{{- define "common.ingressurl.ricplt" -}} +{{- define "common.ingressurl.ric" -}} {{- if .Values.global -}} {{- if .Values.global.ingressurl -}} - {{- if .Values.global.ingressurl.platform -}} - {{- printf "%s" .Values.global.ingressurl.platform -}} + {{- if .Values.global.ingressurl.ric -}} + {{- printf "%s" .Values.global.ingressurl.ric -}} {{- else -}} - {{- printf "ricplt-entry" -}} + {{- printf "ric-entry" -}} {{- end -}} {{- else -}} - {{- printf "ricplt-entry" -}} + {{- printf "ric-entry" -}} {{- end -}} {{- else -}} - {{- printf "ricplt-entry" -}} + {{- printf "ric-entry" -}} {{- end -}} {{- end -}} -{{- define "common.ingressurl.ricxapp" -}} - {{- if .Values.global -}} - {{- if .Values.global.ingressurl -}} - {{- if .Values.global.ingressurl.xapp -}} - {{- printf "%s" .Values.global.ingressurl.xapp -}} - {{- else -}} - {{- printf "ricxapp-entry" -}} - {{- end -}} - {{- else -}} - {{- printf "ricxapp-entry" -}} - {{- end -}} - {{- else -}} - {{- printf "ricxapp-entry" -}} - {{- end -}} -{{- end -}} -{{- define "common.ingressurl.ricaux" -}} +{{- define "common.ingressurl.aux" -}} {{- if .Values.global -}} {{- if .Values.global.ingressurl -}} {{- if .Values.global.ingressurl.aux -}} {{- printf "%s" .Values.global.ingressurl.aux -}} {{- else -}} - {{- printf "ricaux-entry" -}} - {{- end -}} - {{- else -}} - {{- printf "ricaux-entry" -}} - {{- end -}} - {{- else -}} - {{- printf "ricaux-entry" -}} - {{- end -}} -{{- end -}} - -{{- define "common.ingressurl.ricinfra" -}} - {{- if .Values.global -}} - {{- if .Values.global.ingressurl -}} - {{- if .Values.global.ingressurl.infra -}} - {{- printf "%s" .Values.global.ingressurl.infra -}} - {{- else -}} - {{- printf "ricinfra-entry" -}} + {{- printf "aux-entry" -}} {{- end -}} {{- else -}} - {{- printf "ricinfra-entry" -}} + {{- printf "aux-entry" -}} {{- end -}} {{- else -}} - {{- printf "ricinfra-entry" -}} + {{- printf "aux-entry" -}} {{- end -}} {{- end -}} -{{- define "common.ingressurl.localdocker" -}} - {{- if .Values.global -}} - {{- if .Values.global.ingressurl -}} - {{- if .Values.global.ingressurl.localdocker -}} - {{- printf "%s" .Values.global.ingressurl.localdocker -}} - {{- else -}} - {{- printf "docker-entry" -}} - {{- end -}} - {{- else -}} - {{- printf "docker-entry" -}} - {{- end -}} - {{- else -}} - {{- printf "docker-entry" -}} - {{- end -}} -{{- end -}} -{{- define "common.ingressurl.localhelm" -}} +{{- define "common.ingressurl.helm" -}} {{- if .Values.global -}} {{- if .Values.global.ingressurl -}} - {{- if .Values.global.ingressurl.localhelm -}} - {{- printf "%s" .Values.global.ingressurl.localhelm -}} + {{- if .Values.global.ingressurl.helm -}} + {{- printf "%s" .Values.global.ingressurl.helm -}} {{- else -}} {{- printf "helm-entry" -}} {{- end -}} @@ -117,23 +71,6 @@ {{- end -}} -{{- define "common.ingressurl.localnexus" -}} - {{- if .Values.global -}} - {{- if .Values.global.ingressurl -}} - {{- if .Values.global.ingressurl.localnexus -}} - {{- printf "%s" .Values.global.ingressurl.localnexus -}} - {{- else -}} - {{- printf "nexus-entry" -}} - {{- end -}} - {{- else -}} - {{- printf "nexus-entry" -}} - {{- end -}} - {{- else -}} - {{- printf "nexus-entry" -}} - {{- end -}} -{{- end -}} - - @@ -143,41 +80,20 @@ ## helm charts are not using this common template. We need to make sure that these values # ## agree with the values in the kong helm charts values.yaml files. # ############################################################################################ -{{- define "common.ingresshttpport.ricplt" -}} - {{- printf "30080" -}} -{{- end -}} - -{{- define "common.ingresshttpsport.ricplt" -}} - {{- printf "30443" -}} -{{- end -}} - - -{{- define "common.ingresshttpport.ricxapp" -}} +{{- define "common.ingresshttpport.ric" -}} {{- printf "31080" -}} {{- end -}} - -{{- define "common.ingresshttpsport.ricxapp" -}} +{{- define "common.ingresshttpsport.ric" -}} {{- printf "31443" -}} {{- end -}} -{{- define "common.ingresshttpport.ricaux" -}} +{{- define "common.ingresshttpport.aux" -}} {{- printf "32080" -}} {{- end -}} -{{- define "common.ingresshttpsport.ricaux" -}} +{{- define "common.ingresshttpsport.aux" -}} {{- printf "32443" -}} {{- end -}} - -{{- define "common.ingresshttpport.ricinfra" -}} - {{- printf "32180" -}} -{{- end -}} - - - -{{- define "common.ingresshttpsport.ricinfra" -}} - {{- printf "32543" -}} -{{- end -}} -