X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-platform%2F50-RIC-Platform%2Fhelm%2Fcommon%2Ftemplates%2F_name.tpl;h=f9a553e0bc8b494cd2c32a44e0b2fe9453309412;hb=6be690a94ce6d07750a9783f31f36f8ae3854703;hp=7951a6d3d0cd20d437f7371269d850e01db8135d;hpb=a397399c6ae05e03a4fe112ed1b29ecd311c264f;p=it%2Fdep.git diff --git a/ric-platform/50-RIC-Platform/helm/common/templates/_name.tpl b/ric-platform/50-RIC-Platform/helm/common/templates/_name.tpl index 7951a6d3..f9a553e0 100644 --- a/ric-platform/50-RIC-Platform/helm/common/templates/_name.tpl +++ b/ric-platform/50-RIC-Platform/helm/common/templates/_name.tpl @@ -133,6 +133,23 @@ +{{- define "common.name.a1mediator" -}} + {{- if .Values.a1mediator -}} + {{- if .Values.a1mediator.nameOverride -}} + {{- printf "%s" .Values.a1mediator.nameOverride -}} + {{- else -}} + {{- printf "a1mediator" -}} + {{- end -}} + {{- else -}} + {{- printf "a1mediator" -}} + {{- end -}} +{{- end -}} + + +{{- define "common.fullname.a1mediator" -}} + {{- $name := ( include "common.name.a1mediator" . ) -}} + {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}}