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

[MOSIP-38169] Updated install.sh and values.yaml #1044

Merged
merged 1 commit into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
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
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
Loading