diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-03-02 18:51:55 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-03-02 18:51:55 +0000 |
commit | a62fb750442e6ea93c950d933adf8fc2713eb801 (patch) | |
tree | 0bff97d97609f1f6a4ae2a214a6db10576c5a8dc /kubernetes/common/certInitializer/templates/_certInitializer.yaml | |
parent | e05c90189f5fed7c4824a0c1ed9e932860dc2829 (diff) | |
parent | b83415937b6459c208f27b680c45c2539c0c1b46 (diff) |
Merge "[COMMON][CERTINIT] Fail if cert retrieval fails"
Diffstat (limited to 'kubernetes/common/certInitializer/templates/_certInitializer.yaml')
-rw-r--r-- | kubernetes/common/certInitializer/templates/_certInitializer.yaml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/kubernetes/common/certInitializer/templates/_certInitializer.yaml b/kubernetes/common/certInitializer/templates/_certInitializer.yaml index 5a8e84cd8c..a46400b911 100644 --- a/kubernetes/common/certInitializer/templates/_certInitializer.yaml +++ b/kubernetes/common/certInitializer/templates/_certInitializer.yaml @@ -55,6 +55,9 @@ - mountPath: /opt/app/aaf_config/cert/truststoreONAP.p12.b64 name: aaf-agent-certs subPath: truststoreONAP.p12.b64 + - name: {{ include "common.certInitializer._aafAddConfigVolumeName" $dot }} + mountPath: /opt/app/aaf_config/bin/retrieval_check.sh + subPath: retrieval_check.sh {{- if $initRoot.aaf_add_config }} - name: {{ include "common.certInitializer._aafAddConfigVolumeName" $dot }} mountPath: /opt/app/aaf_config/bin/aaf-add-config.sh @@ -66,6 +69,7 @@ - | #!/usr/bin/env bash /opt/app/aaf_config/bin/agent.sh + source /opt/app/aaf_config/bin/retrieval_check.sh {{- if $initRoot.aaf_add_config }} /opt/app/aaf_config/bin/aaf-add-config.sh {{- end }} @@ -174,13 +178,10 @@ configMap: name: {{ tpl $subchartDot.Values.certsCMName $subchartDot }} defaultMode: 0700 - -{{- if $initRoot.aaf_add_config }} - name: {{ include "common.certInitializer._aafAddConfigVolumeName" $dot }} configMap: name: {{ include "common.fullname" $subchartDot }}-add-config defaultMode: 0700 -{{- end -}} {{- if $dot.Values.global.importCustomCertsEnabled }} - name: updated-truststore emptyDir: {} |