aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/certInitializer/templates/configmap.yaml
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-02-23 15:54:00 +0100
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-02-27 20:42:33 +0000
commitb83415937b6459c208f27b680c45c2539c0c1b46 (patch)
treebcdede81909f3070c583bcd762f6b615c53818fb /kubernetes/common/certInitializer/templates/configmap.yaml
parent8db64842e57c3e4a1e049f8e5ba57d86c1bbd73d (diff)
[COMMON][CERTINIT] Fail if cert retrieval fails
Current script that retrieve certificates can fail but exit code will be 0. We then add a check in the script in order to avoid such issue Issue-ID: OOM-2688 Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com> Change-Id: Ib41c66a4de46db8752f68ef35a2bfb67ca575246
Diffstat (limited to 'kubernetes/common/certInitializer/templates/configmap.yaml')
-rw-r--r--kubernetes/common/certInitializer/templates/configmap.yaml3
1 files changed, 2 insertions, 1 deletions
diff --git a/kubernetes/common/certInitializer/templates/configmap.yaml b/kubernetes/common/certInitializer/templates/configmap.yaml
index 7eae899cc1..1e9254abef 100644
--- a/kubernetes/common/certInitializer/templates/configmap.yaml
+++ b/kubernetes/common/certInitializer/templates/configmap.yaml
@@ -14,12 +14,13 @@
# limitations under the License.
*/}}
-{{ if .Values.aaf_add_config }}
apiVersion: v1
kind: ConfigMap
{{- $suffix := "add-config" }}
metadata: {{- include "common.resourceMetadata" (dict "suffix" $suffix "dot" . )| nindent 2 }}
data:
+{{ tpl (.Files.Glob "resources/*").AsConfig . | indent 2 }}
+{{ if .Values.aaf_add_config }}
aaf-add-config.sh: |
{{ tpl .Values.aaf_add_config . | indent 4 | trim }}
{{- end }}