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-common%2FCommon-Template%2Fhelm%2Fric-common%2Ftemplates%2F_mrsub.tpl;h=9a38261d7879319b2c12d7f5db40743d65961a3b;hb=0011afae26ce8f51b964ddc47d8d4b4f80830a4c;hp=0000000000000000000000000000000000000000;hpb=2df61c2fcf64b32ecf7f064ef9cbbe6b54a15bc0;p=it%2Fdep.git diff --git a/ric-common/Common-Template/helm/ric-common/templates/_mrsub.tpl b/ric-common/Common-Template/helm/ric-common/templates/_mrsub.tpl new file mode 100644 index 00000000..9a38261d --- /dev/null +++ b/ric-common/Common-Template/helm/ric-common/templates/_mrsub.tpl @@ -0,0 +1,56 @@ +################################################################################ +# Copyright (c) 2019 AT&T Intellectual Property. # +# # +# 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. # +################################################################################ + +# 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 -}}