Code Review
/
ric-plt
/
ric-dep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Adding env variables for prometheus in E2T helmchart
[ric-plt/ric-dep.git]
/
helm
/
e2term
/
templates
/
configmap-pizpub.yaml
diff --git
a/helm/e2term/templates/configmap-pizpub.yaml
b/helm/e2term/templates/configmap-pizpub.yaml
index
a669834
..
63ea7d8
100644
(file)
--- 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. #
################################################################################
# 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:
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:
data:
-{{ tpl (.Files.Glob "resources/*").AsConfig . | indent 2 }}
+{{ tpl ($topCtx.Files.Glob "resources/*").AsConfig $topCtx | indent 2 }}
+
{{ end }}
{{ end }}
+{{- end }}
+{{- end }}