summaryrefslogtreecommitdiffstats
path: root/charts/aai-search-data/templates/service.yaml
diff options
context:
space:
mode:
authorBorislav Glozman <Borislav.Glozman@amdocs.com>2019-04-24 17:16:50 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-24 17:16:50 +0000
commitf3e398fa75bb53bd951b4702493a451ae82b4b2b (patch)
tree76e5ed56150bc89cd8bad3063ca57eb330d667f8 /charts/aai-search-data/templates/service.yaml
parentf0d0763e748a2f14f002ac51bd04d030004502a3 (diff)
parent7780ab3ebf4a2053efb531fd30210e71e7f7d2cb (diff)
Merge "Add Pluggable Security to Search MS"
Diffstat (limited to 'charts/aai-search-data/templates/service.yaml')
-rw-r--r--charts/aai-search-data/templates/service.yaml14
1 files changed, 14 insertions, 0 deletions
diff --git a/charts/aai-search-data/templates/service.yaml b/charts/aai-search-data/templates/service.yaml
index a49553e..73a4d62 100644
--- a/charts/aai-search-data/templates/service.yaml
+++ b/charts/aai-search-data/templates/service.yaml
@@ -25,6 +25,19 @@ metadata:
spec:
type: {{ .Values.service.type }}
ports:
+ {{ if .Values.global.installSidecarSecurity }}
+ {{if eq .Values.service.type "NodePort" -}}
+ - port: {{ .Values.service.internalPort }}
+ nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
+ targetPort: {{ .Values.global.rproxy.port }}
+ name: {{ .Values.service.portName }}
+ {{- else -}}
+ - port: {{ .Values.service.externalPort }}
+ targetPort: {{ .Values.global.rproxy.port }}
+ name: {{ .Values.service.portName }}
+ {{- end}}
+ {{ else }}
+
{{if eq .Values.service.type "NodePort" -}}
- port: {{ .Values.service.internalPort }}
nodePort: {{ .Values.global.nodePortPrefix | default .Values.nodePortPrefix }}{{ .Values.service.nodePort }}
@@ -33,6 +46,7 @@ spec:
- port: {{ .Values.service.internalPort }}
name: {{ .Values.service.portName }}
{{- end}}
+{{ end }}
selector:
app: {{ include "common.name" . }}
release: {{ .Release.Name }}