X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-common%2FCommon-Template%2Fhelm%2Fric-common%2Ftemplates%2F_name.tpl;h=6402565e99c44a1823c5cdbc67df9f17011b2353;hb=01adf4c86818ed16f46d8c0f9e9c691792bb233a;hp=9ad9ffac17c9ed6b1d6f4749cd946a1a021365f7;hpb=35f4069bf0175d1c03bb3a9ce7fc35ef5fd9397f;p=it%2Fdep.git diff --git a/ric-common/Common-Template/helm/ric-common/templates/_name.tpl b/ric-common/Common-Template/helm/ric-common/templates/_name.tpl index 9ad9ffac..6402565e 100644 --- a/ric-common/Common-Template/helm/ric-common/templates/_name.tpl +++ b/ric-common/Common-Template/helm/ric-common/templates/_name.tpl @@ -182,6 +182,27 @@ {{- end -}} +{{- define "common.name.vespamgr" -}} + {{- if .Values.vespamgr -}} + {{- if .Values.vespamgr.nameOverride -}} + {{- printf "%s" .Values.vespamgr.nameOverride -}} + {{- else -}} + {{- printf "vespamgr" -}} + {{- end -}} + {{- else -}} + {{- printf "vespamgr" -}} + {{- end -}} +{{- end -}} + + +{{- define "common.fullname.vespamgr" -}} + {{- $name := ( include "common.name.vespamgr" . ) -}} + {{- $namespace := ( include "common.namespace.platform" . ) -}} + {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} + + + {{- define "common.name.nexus" -}} {{- if .Values.nexus -}} @@ -202,6 +223,24 @@ {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}} {{- end -}} +{{- define "common.name.chartmuseum" -}} + {{- if .Values.chartmuseum -}} + {{- if .Values.chartmuseum.nameOverride -}} + {{- printf "%s" .Values.chartmuseum.nameOverride -}} + {{- else -}} + {{- printf "chartmuseum" -}} + {{- end -}} + {{- else -}} + {{- printf "chartmuseum" -}} + {{- end -}} +{{- end -}} + + +{{- define "common.fullname.chartmuseum" -}} + {{- $name := ( include "common.name.chartmuseum" . ) -}} + {{- $namespace := ( include "common.namespace.infra" . ) -}} + {{- printf "%s-%s" $namespace $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} {{- define "common.name.dashboard" -}} {{- if .Values.dashboard -}}