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-37447] updated install.sh script for mosipid check #286

Merged
merged 2 commits into from
Nov 19, 2024
Merged
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
29 changes: 29 additions & 0 deletions partner-onboarder/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,34 @@ function installing_onboarder() {
fi
done

while true; do
read -p "Is esignet deployed with default plugins? (y/n): " esignet_ans
if [[ "$esignet_ans" == "y" || "$esignet_ans" == "Y" ]]; then
while true; do
read -p "Please confirm with y for MOSIP ID plugins (y/n): " mosipid_ans
if [[ "$mosipid_ans" == "y" || "$mosipid_ans" == "Y" ]]; then
mosipid="true"
MOSIPID_OPTION="--set onboarding.variables.mosipid=$mosipid"
break
elif [[ "$mosipid_ans" == "n" || "$mosipid_ans" == "N" ]]; then
mosipid="false"
MOSIPID_OPTION="--set onboarding.variables.mosipid=$mosipid"
break
else
echo "Invalid response for MOSIP ID plugins. Please respond with y or n."
fi
done
break
elif [[ "$esignet_ans" == "n" || "$esignet_ans" == "N" ]]; then
mosipid="false"
MOSIPID_OPTION="--set onboarding.variables.mosipid=$mosipid"
break
else
echo "Invalid response for esignet. Please respond with y or n."
fi
done
echo "Helm option: $MOSIPID_OPTION"

echo "Istio label"
kubectl label ns $NS istio-injection=disabled --overwrite
helm repo update
Expand All @@ -105,6 +133,7 @@ function installing_onboarder() {
helm -n $NS install esignet-mock-rp-onboarder mosip/partner-onboarder \
$NFS_OPTION \
$S3_OPTION \
$MOSIPID_OPTION \
--set onboarding.variables.push_reports_to_s3=$push_reports_to_s3 \
--set extraEnvVarsCM[0]=esignet-global \
--set extraEnvVarsCM[1]=keycloak-env-vars \
Expand Down
Loading