diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2020-05-28 07:22:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-05-28 07:22:21 +0000 |
commit | f4ec6b416b02d4a1ac944ce009401102bfca63e3 (patch) | |
tree | 88470307665b83ba38e5eafcf78035fee48af890 /kubernetes/policy/charts/pap/templates/service.yaml | |
parent | 57aaf2f368e4d9d057d2c58bc938db16f13a3b05 (diff) | |
parent | 0644c262f7dc2b313b87fdb84a4d796db2b8ccf5 (diff) |
Merge "Refactor Policy PAP for common service template"
Diffstat (limited to 'kubernetes/policy/charts/pap/templates/service.yaml')
-rw-r--r-- | kubernetes/policy/charts/pap/templates/service.yaml | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/kubernetes/policy/charts/pap/templates/service.yaml b/kubernetes/policy/charts/pap/templates/service.yaml index b6deb5c75e..5c4061e831 100644 --- a/kubernetes/policy/charts/pap/templates/service.yaml +++ b/kubernetes/policy/charts/pap/templates/service.yaml @@ -18,28 +18,4 @@ # SPDX-License-Identifier: Apache-2.0 # ============LICENSE_END========================================================= -apiVersion: v1 -kind: Service -metadata: - name: {{ include "common.servicename" . }} - namespace: {{ include "common.namespace" . }} - labels: - app: {{ include "common.name" . }} - chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} - release: {{ include "common.release" . }} - heritage: {{ .Release.Service }} -spec: - type: {{ .Values.service.type }} - ports: - {{if eq .Values.service.type "NodePort" -}} - - port: {{ .Values.service.internalPort }} - nodePort: {{ .Values.global.nodePortPrefixExt | default .Values.nodePortPrefixExt }}{{ .Values.service.nodePort }} - name: {{ .Values.service.portName }} - {{- else -}} - - port: {{ .Values.service.externalPort }} - targetPort: {{ .Values.service.internalPort }} - name: {{ .Values.service.portName }} - {{- end}} - selector: - app: {{ include "common.name" . }} - release: {{ include "common.release" . }} +{{ include "common.service" . }} |