From 9497763678c5a4d863134f34992f03a2219c2363 Mon Sep 17 00:00:00 2001 From: Piyush7034 Date: Wed, 18 Dec 2024 17:50:25 +0530 Subject: [PATCH 1/2] [INJICERT-657] Added some deployment changes Signed-off-by: Piyush7034 --- deploy/inji-certify/install.sh | 1 + helm/inji-certify/values.yaml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/deploy/inji-certify/install.sh b/deploy/inji-certify/install.sh index b5feedc5..9fb5649d 100755 --- a/deploy/inji-certify/install.sh +++ b/deploy/inji-certify/install.sh @@ -39,6 +39,7 @@ function installing_inji-certify() { echo Copy secrets ../copy_cm_func.sh secret softhsm-certify softhsm config-server + ../copy_cm_func.sh secret softhsm-certify softhsm $NS kubectl -n config-server set env --keys=mosip-injicertify-host --from configmap/global deployment/inji-config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_ kubectl -n config-server set env --keys=security-pin --from secret/softhsm-certify deployment/inji-config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_SOFTHSM_CERTIFY_ diff --git a/helm/inji-certify/values.yaml b/helm/inji-certify/values.yaml index 7a1610b6..d942a2c0 100644 --- a/helm/inji-certify/values.yaml +++ b/helm/inji-certify/values.yaml @@ -240,7 +240,12 @@ updateStrategy: ## - name: FOO ## value: "bar" ## -extraEnvVars: [] +extraEnvVars: | + - name: MOSIP_KERNEL_KEYMANAGER_HSM_KEYSTORE_PASS + valueFrom: + secretKeyRef: + name: certify-softhsm + key: security-pin ## ConfigMap with extra environment variables that used ## From 618ef382aa571738d3444e272e8ce77ee024c3aa Mon Sep 17 00:00:00 2001 From: Piyush7034 Date: Wed, 18 Dec 2024 18:17:26 +0530 Subject: [PATCH 2/2] [INJICERT-657] Change in extraEnvVars yaml value Signed-off-by: Piyush7034 --- helm/inji-certify/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/inji-certify/values.yaml b/helm/inji-certify/values.yaml index d942a2c0..8757771c 100644 --- a/helm/inji-certify/values.yaml +++ b/helm/inji-certify/values.yaml @@ -244,7 +244,7 @@ extraEnvVars: | - name: MOSIP_KERNEL_KEYMANAGER_HSM_KEYSTORE_PASS valueFrom: secretKeyRef: - name: certify-softhsm + name: softhsm-certify key: security-pin ## ConfigMap with extra environment variables that used