Skip to content

Commit

Permalink
Merge pull request #1044 from abhishek8shankar/MOSIP38169
Browse files Browse the repository at this point in the history
[MOSIP-38169] Updated install.sh and values.yaml
  • Loading branch information
ckm007 authored Dec 18, 2024
2 parents 52c9f6a + 4970f46 commit 0b6fd97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions deploy/pms/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,21 @@ function installing_pms() {

INTERNAL_API_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-api-internal-host})
PMP_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-pmp-host})
PMP_NEW_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-pmp-reactjs-ui-new-host})
PMP_REVAMP_UI_HOST=$(kubectl get cm global -o jsonpath={.data.mosip-pmp-revamp-ui-host})

PARTNER_MANAGER_SERVICE_NAME="pms-partner"
POLICY_MANAGER_SERVICE_NAME="pms-policy"

echo Installing partner manager
helm -n $NS install $PARTNER_MANAGER_SERVICE_NAME mosip/pms-partner \
--set istio.corsPolicy.allowOrigins\[0\].prefix=https://$PMP_HOST \
--set istio.corsPolicy.allowOrigins\[1\].prefix=https://$PMP_NEW_HOST \
--set istio.corsPolicy.allowOrigins\[1\].prefix=https://$PMP_REVAMP_UI_HOST \
--version $CHART_VERSION

echo Installing policy manager
helm -n $NS install $POLICY_MANAGER_SERVICE_NAME mosip/pms-policy \
--set istio.corsPolicy.allowOrigins\[0\].prefix=https://$PMP_HOST \
--set istio.corsPolicy.allowOrigins\[1\].prefix=https://$PMP_NEW_HOST \
--set istio.corsPolicy.allowOrigins\[1\].prefix=https://$PMP_REVAMP_UI_HOST \
--version $CHART_VERSION

kubectl -n $NS get deploy -o name | xargs -n1 -t kubectl -n $NS rollout status
Expand Down
2 changes: 1 addition & 1 deletion helm/pms-partner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ istio:
corsPolicy:
allowOrigins:
- prefix: https://pmp.sandbox.xyz.net
- prefix: https://pmp-new.sandbox.xyz.net
- prefix: https://pmp-revamp.sandbox.xyz.net
allowCredentials: true
allowHeaders:
- Accept
Expand Down
2 changes: 1 addition & 1 deletion helm/pms-policy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ istio:
corsPolicy:
allowOrigins:
- prefix: https://pmp.sandbox.xyz.net
- prefix: https://pmp-new.sandbox.xyz.net
- prefix: https://pmp-revamp.sandbox.xyz.net
allowCredentials: true
allowHeaders:
- Accept
Expand Down

0 comments on commit 0b6fd97

Please sign in to comment.