X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=helm%2Fe2term%2Ftemplates%2Fconfigmap-pizpub.yaml;fp=helm%2Fe2term%2Ftemplates%2Fconfigmap-pizpub.yaml;h=5ef9cb5080de6c67b8aeeaac2b2bde87abbe7406;hb=d68f2e965abec2c1078a9c62a9dc27a16e1d359d;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..5ef9cb5 100644 --- a/helm/e2term/templates/configmap-pizpub.yaml +++ b/helm/e2term/templates/configmap-pizpub.yaml @@ -13,12 +13,20 @@ # 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 := . }} +{{- 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 }}