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

[DSD-6382] updated partner onboarder install script to support mock R… #281

Open
wants to merge 1 commit into
base: release-0.10.x
Choose a base branch
from
Open
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
22 changes: 22 additions & 0 deletions partner-onboarder/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,32 @@ function installing_onboarder() {
fi
done

echo "Please select plugin details for esignet mock services..."
echo "1. esignet-mock-plugin.jar"
echo "2. mosip-identity-plugin.jar"
echo "3. any other custom plugin"
read -p "Enter the plugin number: " plugin_no
while true; do
if [[ "$plugin_no" == "1" ]]; then
mosipid_option="--set onboarding.variables.mosipid=false"
break
elif [[ "$plugin_no" == "2" ]]; then
mosipid_option="--set onboarding.variables.mosipid=true"
break
elif [[ "$plugin_no" == "3" ]]; then
echo "Default Onboarder only support onboarding against Mosip and mock Identity"
break
else
echo "please provide the correct plugin number (1 or 2 or 3)."
fi
done

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

echo "Copy configmaps"

COPY_UTIL=../deploy/copy_cm_func.sh
$COPY_UTIL configmap keycloak-env-vars keycloak $NS
$COPY_UTIL configmap keycloak-host keycloak $NS
Expand All @@ -110,6 +131,7 @@ function installing_onboarder() {
--set extraEnvVarsCM[1]=keycloak-env-vars \
--set extraEnvVarsCM[2]=keycloak-host \
$ENABLE_INSECURE \
$mosipid_option \
-f values.yaml \
--version $CHART_VERSION \
--wait --wait-for-jobs
Expand Down
Loading