Skip to content

Commit

Permalink
try ref existing var
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Apr 28, 2025
1 parent 1bc63bd commit 2e90c72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config_job.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ locals {
# Function to execute SQL commands as postgres user
function execute_sql_as_postgres {
echo "Executing SQL: $1"
local pg_password="$(get_postgres_password)"
kubectl exec -n ${kubernetes_namespace.keycloak.metadata[0].name} -t keycloak-db-postgresql-0 -c postgresql -- \
/bin/bash -c PGPASSWORD=$pg_password psql -U postgres -c "$1"
/bin/bash -c PGPASSWORD=$POSTGRES_POSTGRES_PASSWORD psql -U postgres -c "$1"
}
# Fix metrics exporter permissions
Expand Down

0 comments on commit 2e90c72

Please sign in to comment.