From 540d578eb9b76917620f0d1510f8ab94e3948a8f Mon Sep 17 00:00:00 2001 From: ckm007 Date: Tue, 1 Oct 2024 19:38:15 +0530 Subject: [PATCH] [MOSIP-35987] updated onboarder to support storing reports in nfs volume Signed-off-by: ckm007 --- README.md | 2 +- partner-onboarder/install.sh | 11 ++++----- partner-onboarder/values.yaml | 44 +++++++++++++---------------------- 3 files changed, 21 insertions(+), 36 deletions(-) diff --git a/README.md b/README.md index 35765d43..5acf3b46 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/partner-onboarder/install.sh b/partner-onboarder/install.sh index bb8953b4..f5bdd4c1 100755 --- a/partner-onboarder/install.sh +++ b/partner-onboarder/install.sh @@ -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 @@ -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 @@ -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 \ @@ -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 diff --git a/partner-onboarder/values.yaml b/partner-onboarder/values.yaml index 856a24f2..e84817d4 100644 --- a/partner-onboarder/values.yaml +++ b/partner-onboarder/values.yaml @@ -5,34 +5,22 @@ 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: @@ -40,9 +28,9 @@ onboarding: # 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