-{{- define "common.namespace.infra" -}}
- {{- if .Values.global -}}
- {{- if .Values.global.namespace -}}
- {{- if .Values.global.namespace.infra -}}
- {{- printf "%s" .Values.global.namespace.infra -}}
- {{- else -}}
- {{- printf "ricinfra" -}}
- {{- end -}}
- {{- else -}}
- {{- printf "ricinfra" -}}
- {{- end -}}
+
+{{- define "common.namespace.aux" -}}
+ {{- $keylist := list "common" "namespace" "aux" -}}
+ {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
+ {{- $namespace := include "locate" $ctx -}}
+ {{- if not (empty $namespace) -}}
+ {{- $namespace -}}