X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-platform%2F55-Ext-Services%2Fhelm%2Fextsvcplt%2Ftemplates%2Fservices-helm.yaml;fp=ric-platform%2F55-Ext-Services%2Fhelm%2Fextsvcplt%2Ftemplates%2Fservices-helm.yaml;h=99a44c1205ab1e8fe64197a0355e65f03cdbaef4;hb=cf28a83dfa8e7803391c76347f24081bbf91b63b;hp=f05f3c376fba2f9ba2054b35f649e52edf2b15dd;hpb=082b83ab9f89e0f5fea051eeef0676cdb30e6cb1;p=it%2Fdep.git diff --git a/ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-helm.yaml b/ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-helm.yaml index f05f3c37..99a44c12 100644 --- a/ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-helm.yaml +++ b/ric-platform/55-Ext-Services/helm/extsvcplt/templates/services-helm.yaml @@ -14,18 +14,23 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ +{{ $platformNameSpace := include "common.namespace.platform" . }} +{{ $xAppNameSpace := include "common.namespace.xapp" . }} +{{ $nameSpaceList := list $platformNameSpace $xAppNameSpace }} +{{- range $nameSpaceList }} +--- kind: "Service" apiVersion: "v1" metadata: - name: {{ include "common.ingressurl.localhelm" . }} - namespace: {{ include "common.namespace" . }} + name: {{ include "common.ingressurl.helm" $ }} + namespace: {{ . }} spec: ports: - - name: {{ include "common.ingressurl.localhelm" . }}-http-ingress-port + - name: {{ include "common.ingressurl.helm" $ }}-http-ingress-port protocol: "TCP" port: 80 - - name: {{ include "common.ingressurl.localhelm" . }}-https-ingress-port + - name: {{ include "common.ingressurl.helm" $ }}-https-ingress-port protocol: "TCP" port: 443 --- @@ -33,13 +38,15 @@ kind: "Endpoints" apiVersion: "v1" metadata: # match with the selector-less service - name: {{ include "common.ingressurl.localhelm" . }} - namespace: {{ include "common.namespace" . }} + name: {{ include "common.ingressurl.helm" $ }} + namespace: {{ . }} subsets: - addresses: - - ip: "{{ .Values.extsvcplt.auxip }}" + - ip: "{{ $.Values.extsvcplt.auxip }}" ports: - - port: {{ include "common.ingresshttpport.ricinfra" . }} - name: {{ include "common.ingressurl.localhelm" . }}-http-ingress-port - - port: {{ include "common.ingresshttpsport.ricinfra" . }} - name: {{ include "common.ingressurl.localhelm" . }}-https-ingress-port + - port: {{ include "common.ingresshttpport.aux" $ }} + name: {{ include "common.ingressurl.helm" $ }}-http-ingress-port + - port: {{ include "common.ingresshttpsport.aux" $ }} + name: {{ include "common.ingressurl.helm" $ }}-https-ingress-port + +{{- end -}}