Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DSD-5249] updated install.sh script #48

Merged
merged 2 commits into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions helm/inji-verify/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ fi

echo "MOSIP_INJIVERIFY_HOST is not present in configmap/global of configserver"
# Add injiverify host to global
kubectl patch configmap global -n config-server --type merge -p "{\"data\": {\"mosip-injiverify-host\": \"$MOSIP_INIJIVERIFY_HOST\"}}"
kubectl patch configmap global -n config-server --type merge -p "{\"data\": {\"mosip-injiverify-host\": \"$MOSIP_INJIVERIFY_HOST\"}}"
kubectl patch configmap global -n default --type merge -p "{\"data\": {\"mosip-injiverify-host\": \"$MOSIP_INJIVERIFY_HOST\"}}"
# Add the host
kubectl set env deployment/config-server SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_MOSIP_ESIGNET_INJIVERIFY_HOST=$MOSIP_INJIVERIFY_HOST -n config-server
# Restart the configserver deployment
kubectl -n config-server get deploy -o name | xargs -n1 -t kubectl -n config-server rollout restart
kubectl -n config-server get deploy -o name | xargs -n1 -t kubectl -n config-server rollout status

echo Create $NS namespace
kubectl create ns $NS
Expand All @@ -52,7 +53,7 @@ function installing_inji-verify() {

INJIVERIFY_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-injiverify-host})
echo Installing INJIVERIFY
helm -n $NS install inji-verify mosip/inji-verify \
helm -n $NS install inji-verify mosip/injiverify \
-f values.yaml \
--set istio.hosts\[0\]=$INJIVERIFY_HOST \
--version $CHART_VERSION
Expand Down