X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Fpolicymanagementservice%2Ftemplates%2Fservice.yaml;h=6d820e21c149c91fa872672d5b1c99c47c1cd430;hb=1b94fafc07f3e99986c0b673173ccfc8f7e745cb;hp=211ffdfd9aa2ad74bb6f40e577fae0a137291db7;hpb=250396e51a04a674636d14c8d9c59b7b10dc229d;p=it%2Fdep.git diff --git a/nonrtric/helm/policymanagementservice/templates/service.yaml b/nonrtric/helm/policymanagementservice/templates/service.yaml index 211ffdfd..6d820e21 100644 --- a/nonrtric/helm/policymanagementservice/templates/service.yaml +++ b/nonrtric/helm/policymanagementservice/templates/service.yaml @@ -26,11 +26,17 @@ metadata: heritage: {{ .Release.Service }} spec: ports: - - name: http - protocol: TCP - port: {{ include "common.serviceport.policymanagementservice.http" . }} - targetPort: {{ include "common.serviceport.policymanagementservice.http" . }} + {{if eq .Values.policymanagementservice.service.allowHttp true -}} + - name: {{ index .Values.policymanagementservice.service.httpName }} + port: {{ .Values.policymanagementservice.service.internalPort1 }} + targetPort: {{ .Values.policymanagementservice.service.targetPort1 }} + protocol: TCP + {{- end }} + - name: {{ index .Values.policymanagementservice.service.httpsName }} + port: {{ .Values.policymanagementservice.service.internalPort2 }} + targetPort: {{ .Values.policymanagementservice.service.targetPort2 }} + protocol: TCP selector: - app: nonrtric-{{ include "common.name.policymanagementservice" . }} + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.policymanagementservice" . }} release: {{ .Release.Name }} type: ClusterIP