[COMMON][ES] Simplify cert retrieval script 52/118252/4
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Tue, 23 Feb 2021 15:12:20 +0000 (16:12 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 13 May 2021 08:06:23 +0000 (08:06 +0000)
As retrieving values is now done via a generic script, let's clean a
little bit cert retrieval in order to remove unneeded part.

Issue-ID: OOM-2688
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I919772a458028b86a8d2db1a90261805a93104ac

kubernetes/common/elasticsearch/values.yaml

index b91ac76..a3f1564 100644 (file)
@@ -279,7 +279,6 @@ certInitializer:
   aaf_add_config: >
     cd {{ .Values.credsPath }};
     mkdir -p certs;
-    export $(/opt/app/aaf_config/bin/agent.sh local showpass | grep '^c' | xargs -0);
     keytool -exportcert -rfc -file certs/cacert.pem -keystore {{ .Values.fqi_namespace }}.trust.jks -alias ca_local_0 -storepass $cadi_truststore_password;
     openssl pkcs12 -in {{ .Values.fqi_namespace }}.p12 -out certs/cert.pem -passin pass:$cadi_keystore_password_p12 -passout pass:$cadi_keystore_password_p12;
     cp {{ .Values.fqi_namespace }}.key certs/key.pem;