{{- define "mstore.servicePort" -}} {{- if .Values.global -}} {{- if .Values.global.mstorePort -}} {{- .Values.global.mstorePort -}} {{- end -}} {{- else -}} {{- .Values.main.service.port -}} {{- end -}} {{- end -}}