X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=nonrtric%2Fhelm%2Frappcatalogueenhancedservice%2Ftemplates%2Fservice.yaml;fp=nonrtric%2Fhelm%2Frappcatalogueenhancedservice%2Ftemplates%2Fservice.yaml;h=d1ba4820bda42b2894c83c57ab6879ef5f051797;hb=1932acaea6fd066859cb0612003c896b17af6aae;hp=0000000000000000000000000000000000000000;hpb=41f01080ed18db53fe75ffea1be444084e8a4d15;p=it%2Fdep.git diff --git a/nonrtric/helm/rappcatalogueenhancedservice/templates/service.yaml b/nonrtric/helm/rappcatalogueenhancedservice/templates/service.yaml new file mode 100644 index 00000000..d1ba4820 --- /dev/null +++ b/nonrtric/helm/rappcatalogueenhancedservice/templates/service.yaml @@ -0,0 +1,38 @@ +################################################################################ +# Copyright (c) 2022 Nordix Foundation. # +# # +# Licensed under the Apache License, Version 2.0 (the "License"); # +# you may not use this file except in compliance with the License. # +# You may obtain a copy of the License at # +# # +# http://www.apache.org/licenses/LICENSE-2.0 # +# # +# Unless required by applicable law or agreed to in writing, software # +# distributed under the License is distributed on an "AS IS" BASIS, # +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # +# See the License for the specific language governing permissions and # +# limitations under the License. # +################################################################################ + +kind: Service +apiVersion: v1 +metadata: + name: {{ include "common.name.rappcatalogueenhancedservice" . }} + namespace: {{ include "common.namespace.nonrtric" . }} + labels: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappcatalogueenhancedservice" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + ports: + {{if eq .Values.rappcatalogueenhancedservice.service.allowHttp true -}} + - name: {{ index .Values.rappcatalogueenhancedservice.service.httpName }} + port: {{ .Values.rappcatalogueenhancedservice.service.internalPort }} + targetPort: {{ .Values.rappcatalogueenhancedservice.service.targetPort }} + protocol: TCP + {{- end }} + selector: + app: {{ include "common.namespace.nonrtric" . }}-{{ include "common.name.rappcatalogueenhancedservice" . }} + release: {{ .Release.Name }} + type: ClusterIP