Skip to content

Commit

Permalink
Merge pull request #64 from Prafulrakhade/develop
Browse files Browse the repository at this point in the history
[DSD-5249] updated install.sh script
  • Loading branch information
ckm007 authored May 13, 2024
2 parents 7e04f28 + 6ceb3ef commit 6b83885
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions helm/inji-web/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,12 @@ fi

echo "MOSIP_INJIWEB_HOST is not present in configmap/global of configserver"
# Add injiweb host to global
kubectl patch configmap global -n config-server --type merge -p "{\"data\": {\"mosip-injiweb-host\": \"$MOSIP_INIEB_HOST\"}}"
kubectl patch configmap global -n config-server --type merge -p "{\"data\": {\"mosip-injiweb-host\": \"$MOSIP_INJIWEBB_HOST\"}}"
kubectl patch configmap global -n default --type merge -p "{\"data\": {\"mosip-injiweb-host\": \"$MOSIP_INJIWEBB_HOST\"}}"
# Add the host
kubectl set env deployment/config-server SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_MOSIP_ESIGNET_INJIWEB_HOST=$MOSIP_INJIWEB_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

sleep 400s

Expand All @@ -54,7 +55,7 @@ function installing_inji-web() {

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

0 comments on commit 6b83885

Please sign in to comment.