[SDNC] Fix service template for ServiceMesh case
sdnc-oam service was not created correctly in case of
a nonTLS deployment
Issue-ID: OOM-2495
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Change-Id: I095f8a466d9d1df62800a28d2538e75db597e023
diff --git a/kubernetes/sdnc/templates/service.yaml b/kubernetes/sdnc/templates/service.yaml
index d2482ea..1fe4ee3 100644
--- a/kubernetes/sdnc/templates/service.yaml
+++ b/kubernetes/sdnc/templates/service.yaml
@@ -70,13 +70,8 @@
type: ClusterIP
ports:
- name: "{{ .Values.service.portName }}-restconf-alt"
- {{ if .Values.global.aafEnabled }}
port: {{ .Values.service.externalPort }}
targetPort: {{ .Values.service.internalPort }}
- {{- else -}}
- port: {{ .Values.service.internalPort4 }}
- targetPort: {{ .Values.service.internalPort4 }}
- {{ end }}
- name: "{{ .Values.service.portName }}-karaf"
port: {{ .Values.service.externalPort2 }}
targetPort: {{ .Values.service.internalPort2 }}