Removed xapp kong; remove nexus; created xapp services; other changes to allow cross...
[it/dep.git] / ric-platform / 55-Ext-Services / helm / extsvcplt / templates / services-helm.yaml
index f05f3c3..99a44c1 100644 (file)
 #   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 -}}