X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-platform%2F50-RIC-Platform%2Fhelm%2Fappmgr%2Ftemplates%2Fservice-test.yaml;fp=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fdashboard%2Ftemplates%2F_helpers.tpl;h=b3ad56a61155a98160af2163149d182a1acd602f;hb=3803859c341dc62bdcd79ba94be585592a94672b;hp=2a6a3ccb1e00afbe1089b57e2bb87fe2e28cb602;hpb=97a3693d4035b13c6aa0c80f1dceefa1cd10ce5b;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/_helpers.tpl b/ric-platform/50-RIC-Platform/helm/appmgr/templates/service-test.yaml similarity index 55% rename from ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/_helpers.tpl rename to ric-platform/50-RIC-Platform/helm/appmgr/templates/service-test.yaml index 2a6a3ccb..b3ad56a6 100644 --- a/ric-aux/80-Auxiliary-Functions/helm/dashboard/templates/_helpers.tpl +++ b/ric-platform/50-RIC-Platform/helm/appmgr/templates/service-test.yaml @@ -15,35 +15,24 @@ # limitations under the License. # ################################################################################ -{{/* vim: set filetype=mustache: */}} -{{/* -Expand the name of the chart. -*/}} -{{- define "dashboard.name" -}} -{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} -{{- end -}} +apiVersion: v1 +kind: Service +metadata: + name: {{ include "common.servicename.dashboard.http" . }} + namespace: {{ include "common.namespace.platform" . }} + labels: + app: {{ include "common.namespace.platform" . }}-{{ include "common.name.appmgr" . }} + chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} + release: {{ .Release.Name }} + heritage: {{ .Release.Service }} +spec: + type: ClusterIP + ports: + - port: {{ .Values.appmgr.service.http.port }} + protocol: "TCP" + name: "http" + targetPort: "http" + selector: + app: {{ include "common.namespace.platform" . }}-{{ include "common.name.appmgr" . }} + release: {{ .Release.Name }} -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "dashboard.fullname" -}} -{{- if .Values.fullnameOverride -}} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- $name := default .Chart.Name .Values.nameOverride -}} -{{- if contains $name .Release.Name -}} -{{- .Release.Name | trunc 63 | trimSuffix "-" -}} -{{- else -}} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} -{{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "dashboard.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} -{{- end -}}