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-6742] fixed script for es-dev env #294

Merged
merged 1 commit into from
Dec 3, 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
13 changes: 7 additions & 6 deletions deploy/mock-relying-party-ui/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ function installing_mock-relying-party-ui() {
CHART_VERSION=0.10.0-develop

read -p "Please provide mock relying party ui domain (eg: healthservices.sandbox.xyz.net ) : " MOCK_UI_HOST
MOCK_UI_HOST=$(echo "$MOCK_UI_HOST" | xargs) # Trim whitespace
if [ -z "$MOCK_UI_HOST" ]; then
echo "Mock relying party UI Host not provided; EXITING;"
exit 1;
exit 1
fi

CHK_MOCK_UI_HOST=$(nslookup "$MOCK_UI_HOST" > /dev/null 2>&1)
if [ $? -ne 0 ]; then
echo "Mock relying party UI Host does not exist; EXITING;"
# Check if the domain resolves successfully
nslookup "$MOCK_UI_HOST" > /dev/null 2>&1 || {
echo "Mock relying party UI Host does not exist; EXITING."
exit 1
fi
}

echo Create $NS namespace
kubectl create ns $NS || true

Expand Down
2 changes: 1 addition & 1 deletion deploy/postgres/generate-secret-cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def create_or_update_configmap(configmap_name, namespace, postgres_host, postgre
create_or_update_secret(db_secret_name, namespace, "db-dbuser-password", password)

# Handle postgres-password secret
postgres_secret_name = "esignet-postgres-postgresql"
postgres_secret_name = "postgres-postgresql"
if secret_exists(postgres_secret_name, namespace):
overwrite = input(f"Secret '{postgres_secret_name}' already exists in namespace '{namespace}'. Overwrite? (y/n): ")
if overwrite.lower() == 'y':
Expand Down
2 changes: 1 addition & 1 deletion deploy/postgres/init_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ while true; do
kubectl -n $NS delete --ignore-not-found=true secret db-common-secrets

echo Copy Postgres secrets
../copy_cm_func.sh secret esignet-postgres-postgresql esignet $NS
../copy_cm_func.sh secret postgres-postgresql esignet $NS

echo Initializing DB
helm -n $NS install postgres-init-mockidentitysystem mosip/postgres-init -f init_values.yaml \
Expand Down
2 changes: 1 addition & 1 deletion deploy/postgres/init_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ databases:
su:
user: postgres
secret:
name: esignet-postgres-postgresql
name: postgres-postgresql
key: postgres-password
dml: 1
branch: develop