X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fe2term%2Ftemplates%2Fconfigmap-pizpub.yaml;h=63ea7d86acc48d97fa570ad52fb99612f31cf265;hb=3a6039a7db6164d54f80ab0f743a058dc5526862;hp=a6698341df48e1bcb3cda5a906ec8e97bacb2b8f;hpb=38dc857062b14145f5b9db89d10eba0ae5b90d11;p=ric-plt%2Fric-dep.git diff --git a/helm/e2term/templates/configmap-pizpub.yaml b/helm/e2term/templates/configmap-pizpub.yaml index a669834..63ea7d8 100644 --- a/helm/e2term/templates/configmap-pizpub.yaml +++ b/helm/e2term/templates/configmap-pizpub.yaml @@ -13,12 +13,22 @@ # See the License for the specific language governing permissions and # # limitations under the License. # ################################################################################ -{{ if .Values.e2term.pizpub.enabled }} +{{- $topCtx := . }} +{{- range keys .Values.e2term }} +{{- $key := . }} +{{- $_ := set $topCtx "key" $key }} +{{- with index $topCtx.Values.e2term . }} + +{{ if .pizpub.enabled }} +--- apiVersion: v1 kind: ConfigMap metadata: - name: {{ include "common.configmapname.e2term" . }}-pizpub - namespace: {{ include "common.namespace.platform" . }} + name: {{ include "common.configmapname.e2term" $topCtx }}-pizpub-{{ $key }} + namespace: {{ include "common.namespace.platform" $topCtx }} data: -{{ tpl (.Files.Glob "resources/*").AsConfig . | indent 2 }} +{{ tpl ($topCtx.Files.Glob "resources/*").AsConfig $topCtx | indent 2 }} + {{ end }} +{{- end }} +{{- end }}