Code Review
/
it
/
test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
FIX: Nanobot cleanup, bugfixes, and features
[it/test.git]
/
ric_robot_suite
/
helm
/
nanobot
/
templates
/
configmaps-robot.yaml
diff --git
a/ric_robot_suite/helm/nanobot/templates/configmap-robot-testsuites.yaml
b/ric_robot_suite/helm/nanobot/templates/configmaps-robot.yaml
similarity index 67%
rename from
ric_robot_suite/helm/nanobot/templates/configmap-robot-testsuites.yaml
rename to
ric_robot_suite/helm/nanobot/templates/configmaps-robot.yaml
index
5c2eeaa
..
329d986
100644
(file)
--- a/
ric_robot_suite/helm/nanobot/templates/configmap-robot-testsuites.yaml
+++ b/
ric_robot_suite/helm/nanobot/templates/configmaps-robot.yaml
@@
-1,6
+1,5
@@
{{/*
Copyright (c) 2019 AT&T Intellectual Property.
{{/*
Copyright (c) 2019 AT&T Intellectual Property.
- Copyright (c) 2019 Nokia.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@
-14,10
+13,17
@@
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.
*/}}
+{{- range $map := list "bin" "properties" "resources" "testsuites" }}
+---
apiVersion: v1
kind: ConfigMap
metadata:
apiVersion: v1
kind: ConfigMap
metadata:
- name: robot-
testsuites
- namespace: {{ .Release.Namespace }}
+ name: robot-
{{ $map }}
+ namespace: {{
$
.Release.Namespace }}
data:
data:
- {{ (tpl (.Files.Glob "configmap-src/testsuites/*.robot").AsConfig . ) | nindent 2 }}
+{{- $path := printf "configmap-src/*/%s/*" $map }}
+{{- $content := $.Files.Glob $path }}
+{{- if $content }}
+{{ tpl ($content).AsConfig $ | indent 2 }}
+{{- end }}
+{{- end }}