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;h=dd6f3e4ace67d81a92977a985674290f2e295f0a;hb=e8aa4b7ae26bc9454ea735df6174e28bcff0610a;hp=f05f3c376fba2f9ba2054b35f649e52edf2b15dd;hpb=7469f99d1eba44f0a97ea0279fd96a26d948f8a4;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..dd6f3e4a 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" $ }} + name: {{ include "common.ingressurl.helm" $ }}-http-ingress-port + - port: {{ include "common.ingresshttpsport" $ }} + name: {{ include "common.ingressurl.helm" $ }}-https-ingress-port + +{{- end -}}