X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-common%2FCommon-Template%2Fhelm%2Fric-common%2Ftemplates%2F_mrsub.tpl;fp=ric-platform%2F50-RIC-Platform%2Fhelm%2Fdbaas%2Fvalues.yaml;h=9a38261d7879319b2c12d7f5db40743d65961a3b;hb=refs%2Fchanges%2F34%2F1234%2F9;hp=2f1de685edf699560e7a7e168bf4e978ae945773;hpb=2df61c2fcf64b32ecf7f064ef9cbbe6b54a15bc0;p=it%2Fdep.git diff --git a/ric-platform/50-RIC-Platform/helm/dbaas/values.yaml b/ric-common/Common-Template/helm/ric-common/templates/_mrsub.tpl similarity index 51% rename from ric-platform/50-RIC-Platform/helm/dbaas/values.yaml rename to ric-common/Common-Template/helm/ric-common/templates/_mrsub.tpl index 2f1de685..9a38261d 100644 --- a/ric-platform/50-RIC-Platform/helm/dbaas/values.yaml +++ b/ric-common/Common-Template/helm/ric-common/templates/_mrsub.tpl @@ -1,6 +1,5 @@ ################################################################################ # Copyright (c) 2019 AT&T Intellectual Property. # -# Copyright (c) 2019 Nokia. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you may not use this file except in compliance with the License. # @@ -15,19 +14,43 @@ # limitations under the License. # ################################################################################ -repository: "nexus3.o-ran-sc.org:10004" -imagePullPolicy: IfNotPresent -repositoryCred: docker-reg-cred - -dbaas: - backend: - terminationGracePeriodSeconds: 0 - replicas: 1 - image: - name: ric-plt-dbaas - tag: 0.1.0 - - # Service ports are now defined in - # ric-common/Common-Template/helm/ric-common/templates/_ports.tpl file. - # If need to change a service port, make the code change necessary, then - # update the _ports.tpl file with the new port number. \ No newline at end of file +# template for component name +{{- define "common.name.mrsub" -}} + {{- if .Values.mrsub -}} + {{- if .Values.mrsub.nameOverride -}} + {{- printf "%s" .Values.mrsub.nameOverride -}} + {{- else -}} + {{- printf "mrsub" -}} + {{- end -}} + {{- else -}} + {{- printf "mrsub" -}} + {{- end -}} +{{- end -}} + +{{- define "common.fullname.mrsub" -}} + {{- $name := ( include "common.name.mrsub" . ) -}} + {{- $namespace := ( include "common.namespace.aux" . ) -}} + {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + + + +{{- define "common.deploymentname.mrsub" -}} + {{- $name := ( include "common.fullname.mrsub" . ) -}} + {{- printf "deployment-%s" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + + +{{- define "common.configmapname.mrsub" -}} + {{- $name := ( include "common.fullname.mrsub" . ) -}} + {{- printf "configmap-%s" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + + +{{- define "common.containername.mrsub" -}} + {{- $name := ( include "common.fullname.mrsub" . ) -}} + {{- printf "container-%s" $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + + +{{- define "common.serviceport.mrsub.http" -}}8080{{- end -}}