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-35816] #262

Merged
merged 1 commit into from
Oct 4, 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
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 implementation of auth for e-signet
```

## 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
Loading