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=bbfce4fceed71c69fbaaa7cacc006057d32e25a6;hb=bb6097c9e2fa2918028892b2c5e675841029bee9;hp=9ad9ffac17c9ed6b1d6f4749cd946a1a021365f7;hpb=0309475769b27702c8c886411222882da8b519b1;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..bbfce4fc 100644 --- a/ric-common/Common-Template/helm/ric-common/templates/_name.tpl +++ b/ric-common/Common-Template/helm/ric-common/templates/_name.tpl @@ -202,6 +202,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 -}}