1 ################################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. #
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
5 # you may not use this file except in compliance with the License. #
6 # You may obtain a copy of the License at #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
10 # Unless required by applicable law or agreed to in writing, software #
11 # distributed under the License is distributed on an "AS IS" BASIS, #
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
13 # See the License for the specific language governing permissions and #
14 # limitations under the License. #
15 ################################################################################
17 {{- define "common.namespace.platform" -}}
18 {{- $keylist := list "common" "namespace" "platform" -}}
19 {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
20 {{- $namespace := include "locate" $ctx -}}
21 {{- if not (empty $namespace) -}}
24 {{- printf "ricplt" -}}
28 {{- define "common.namespace.infra" -}}
29 {{- $keylist := list "common" "namespace" "infra" -}}
30 {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
31 {{- $namespace := include "locate" $ctx -}}
32 {{- if not (empty $namespace) -}}
35 {{- printf "ricinfra" -}}
39 {{- define "common.namespace.xapp" -}}
40 {{- $keylist := list "common" "namespace" "xapp" -}}
41 {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
42 {{- $namespace := include "locate" $ctx -}}
43 {{- if not (empty $namespace) -}}
46 {{- printf "ricxapp" -}}
51 {{- define "common.namespace.aux" -}}
52 {{- $keylist := list "common" "namespace" "aux" -}}
53 {{- $ctx := dict "ctx" $.Values "keylist" $keylist -}}
54 {{- $namespace := include "locate" $ctx -}}
55 {{- if not (empty $namespace) -}}
58 {{- printf "ricaux" -}}