Skip to content

Commit

Permalink
Merge pull request #128 from syedsalman3753/develop
Browse files Browse the repository at this point in the history
[MOSIP-29204] Adding rollout restart config-server
  • Loading branch information
vijay151096 authored Oct 11, 2023
2 parents 202b016 + 681e8d5 commit f62b266
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions helm/mimoto/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ function installing_mimoto() {
kubectl -n config-server set env --keys=mimoto-wallet-binding-partner-api-key --from secret/mimoto-wallet-binding-partner-api-key deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_
kubectl -n config-server set env --keys=mimoto-oidc-partner-clientid --from secret/mimoto-oidc-partner-clientid deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_
kubectl -n config-server set env --keys=mimoto-oidc-keystore-password --from secret/mimoto-oidc-keystore-password deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_

kubectl -n config-server rollout restart deployment config-server
kubectl -n config-server get deploy -o name | xargs -n1 -t kubectl -n config-server rollout status

echo Installing mimoto
Expand Down
5 changes: 3 additions & 2 deletions partner-onboarder/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function installing_onboarder() {
s3_user_key=$( kubectl -n s3 get cm s3 -o json | jq -r '.data."s3-user-key"' )

echo Onboarding default partners
helm -n $NS install mimoto-keybinding-partner-onboarder mosip/partner-onboarder \
helm -n $NS install mimoto-partner-onboarder mosip/partner-onboarder \
--set onboarding.configmaps.s3.s3-host="$s3_url" \
--set onboarding.configmaps.s3.s3-user-key="$s3_user_key" \
--set onboarding.configmaps.s3.s3-region="$s3_region" \
Expand All @@ -84,7 +84,8 @@ function installing_onboarder() {
kubectl -n config-server set env --keys=mimoto-oidc-partner-clientid --from secret/mimoto-oidc-partner-clientid deployment/config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_
kubectl -n config-server get deploy -o name | xargs -n1 -t kubectl -n config-server rollout status

kubectl rollout restart deployment -n mimoto mimoto
kubectl -n config-server rollout restart deployment config-server
kubectl -n mimoto rollout restart deployment mimoto

echo Reports are moved to S3 under onboarder bucket
return 0
Expand Down

0 comments on commit f62b266

Please sign in to comment.