Skip to content

Commit

Permalink
Merge pull request #298 from Prafulrakhade/develop
Browse files Browse the repository at this point in the history
[DSD-5725] updated install.sh script with inji-config changes also up…
  • Loading branch information
ckm007 committed Jul 11, 2024
2 parents 094a241 + e966680 commit c1eacdc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ mvn spring-boot:run -Dspring.profiles.active=local

### Install

1. Execute Onboarder install script
1. Execute inji-config-server install script
```
cd helm/inji-config-server
./install.sh
```
* Review values.yaml and make sure git repository parameters are as per your installation.

2. Execute Onboarder install script

```
cd partner-onboarder
Expand All @@ -28,7 +35,7 @@ cd partner-onboarder
* During the execution of the `install.sh` script, a prompt appears requesting information for the S3 bucket, including its name and URL.
* Once the job is completed, log in to S3 and check the reports. There should not be any failures.

2. Execute mimoto install script
3. Execute mimoto install script

```
cd helm/mimoto
Expand Down
16 changes: 8 additions & 8 deletions partner-onboarder/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Onboards default partners
# Onboards default partners
## Usage: ./install.sh [kubeconfig]

if [ $# -ge 1 ] ; then
Expand All @@ -21,7 +21,7 @@ if [ "$flag" = "n" ]; then
fi

NS=mimoto
CHART_VERSION=12.0.2
CHART_VERSION=0.0.1-develop

echo Create $NS namespace
kubectl create ns $NS
Expand Down Expand Up @@ -84,12 +84,12 @@ function installing_onboarder() {
echo Updating Mimoto wallet binding partner api key and Mimoto OIDC Partner Client ID
./copy_cm_func.sh secret mimoto-wallet-binding-partner-api-key mimoto config-server
./copy_cm_func.sh secret mimoto-oidc-partner-clientid mimoto config-server
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 set env --keys=mimoto-wallet-binding-partner-api-key --from secret/mimoto-wallet-binding-partner-api-key deployment/inji-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/inji-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/inji-config-server --prefix=SPRING_CLOUD_CONFIG_SERVER_OVERRIDES_

kubectl -n config-server rollout restart deployment config-server
kubectl -n config-server rollout status deployment config-server
kubectl -n config-server rollout restart deployment inji-config-server
kubectl -n config-server rollout status deployment inji-config-server

echo Reports are moved to S3 under onboarder bucket
return 0
Expand All @@ -102,4 +102,4 @@ set -o errexit ## set -e : exit the script if any statement returns a non-true
set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
set -o errtrace # trace ERR through 'time command' and other functions
set -o pipefail # trace ERR through pipes
installing_onboarder # calling function
installing_onboarder # calling function

0 comments on commit c1eacdc

Please sign in to comment.