# 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
---
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 -}}