Skip to content

Commit

Permalink
Merge pull request #294 from bhumi46/release-0.10.x
Browse files Browse the repository at this point in the history
[DSD-6742] fixed script for es-dev env
  • Loading branch information
ckm007 authored Dec 3, 2024
2 parents 7af134e + 55fd956 commit 9d6bad1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
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

0 comments on commit 9d6bad1

Please sign in to comment.