From 9b66419e24536977c520d90eb39904a35364e41b Mon Sep 17 00:00:00 2001
From: Meric <meric.feyzullahoglu@gmail.com>
Date: Tue, 2 Nov 2021 11:16:14 +0000
Subject: [PATCH] Deletion of unused environment variables

Signed-off-by: Meric <meric.feyzullahoglu@gmail.com>
---
 util/get_oisp_credentials.sh | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/util/get_oisp_credentials.sh b/util/get_oisp_credentials.sh
index 5d1da242..28f93f32 100755
--- a/util/get_oisp_credentials.sh
+++ b/util/get_oisp_credentials.sh
@@ -26,10 +26,6 @@ if [[ "$KEYCLOAK_FUSION_BACKEND_SECRET" == "null" ]] || [[ -z "$KEYCLOAK_FUSION_
     echo "Keycloak fusion backend secret is not present! Randomly creating new one!"
     export KEYCLOAK_FUSION_BACKEND_SECRET=$(< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c ${1:-64})
 fi
-# tr "." "_" because jq cannot handle keys with "."
-export JWT_PRIVATE=$(kubectl -n ${NAMESPACE} -o json get secret oisp-secrets | tr "." "_" | jq -r .data.jwt_privatekey)
-export JWT_PUBLIC=$(kubectl -n ${NAMESPACE} -o json get secret oisp-secrets | tr "." "_" | jq -r .data.jwt_publickey)
-export JWT_X509=$(kubectl -n ${NAMESPACE} -o json get secret oisp-secrets | tr "." "_" | jq -r .data.jwt_x509)
 
 # Check whether SYSTEMUSER_PASSWORD is recovered to make sure the tools are installed
 # and the namespace is valid