Skip to content

Commit

Permalink
Merge pull request #262 from mosip/MOSIP-35816
Browse files Browse the repository at this point in the history
[MOSIP-35816]
  • Loading branch information
ckm007 authored Oct 4, 2024
2 parents ad4f155 + 540d578 commit 64ce678
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ Repository contains mock implementations for eSignet. Only for non-production us
```

## Partner onboarder
* Perform Partner onboarding for esignet mock using [steps](partner-onboarder/README.md).
* Perform Partner onboarding for esignet mock relying party using [steps](partner-onboarder/README.md) only if mosip-identity plugin is used.
11 changes: 4 additions & 7 deletions partner-onboarder/install.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Onboards mock relying party OIDC helm
# Installs mock relying party onboarder OIDC helm
## Usage: ./install.sh [kubeconfig]

if [ $# -ge 1 ] ; then
Expand Down Expand Up @@ -91,7 +91,7 @@ function installing_onboarder() {

echo "Istio label"
kubectl label ns $NS istio-injection=disabled --overwrite
# helm repo update
helm repo update

echo "Copy configmaps"
COPY_UTIL=../deploy/copy_cm_func.sh
Expand All @@ -101,12 +101,8 @@ function installing_onboarder() {
$COPY_UTIL secret keycloak keycloak $NS
$COPY_UTIL secret keycloak-client-secrets keycloak $NS

echo $NFS_OPTION
echo $S3_OPTION
echo $push_reports_to_s3

echo "Onboarding Mock Relying Party OIDC client"
helm -n $NS install esignet-mock-rp-onboarder ../../mosip-onboarding/helm/partner-onboarder/ \
helm -n $NS install esignet-mock-rp-onboarder mosip/partner-onboarder \
$NFS_OPTION \
$S3_OPTION \
--set onboarding.variables.push_reports_to_s3=$push_reports_to_s3 \
Expand All @@ -115,6 +111,7 @@ function installing_onboarder() {
--set extraEnvVarsCM[2]=keycloak-host \
$ENABLE_INSECURE \
-f values.yaml \
--version $CHART_VERSION \
--debug --wait --wait-for-jobs
echo "Partner onboarded successfully and reports are moved to S3 or NFS"
return 0
Expand Down
44 changes: 16 additions & 28 deletions partner-onboarder/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,32 @@ image:

onboarding:
modules:
- name: ida
enabled: false
- name: print
enabled: false
- name: abis
enabled: false
- name: resident
enabled: false
- name: mobileid
enabled: false
- name: digitalcard
enabled: false
- name: esignet
enabled: false
- name: resident-oidc
enabled: false
- name: mock-rp-oidc
enabled: true
- name: mimoto-keybinding
enabled: false
- name: mimoto-oidc
enabled: false
- name: signup-oidc
enabled: false

# configmaps:
# s3:
# s3-host: 'http://minio.minio:9000'
# s3-user-key: 'admin'
# s3-region: ''
# onboarder-namespace:
# ns_mimoto: mimoto
# ns_esignet: esignet
# ns_signup: signup
# secrets:
# s3:
# s3-user-secret: 'password'
# volumes:
# reports:
# enabled: true
# name: onboarder-reports
# storageClass: nfs-client
# accessModes:
# - ReadWriteMany
# size: 10Mi
# existingClaim:
# # Dir where config and keys are written inside container
# mountDir: "/home/mosip/reports"
# mountDir: /home/mosip/reports
# nfs:
# path: '' # Dir within the nfs server where config repo is cloned/maintained locally.
# server: '' # Ip address of nfs server.
# path: "/srv/nfs/sandbox/onboarding" # Dir within the nfs server where config repo is cloned/maintained locally.
# server: "nfs-server" # Ip address of nfs server.
# variables:
# push-reports-to-s3: true
# push_reports_to_s3: true

0 comments on commit 64ce678

Please sign in to comment.