This commit is contained in:
2023-10-23 15:04:05 +02:00
parent 0447808b4a
commit 7a24a173f7
3 changed files with 48 additions and 25 deletions

View File

@@ -18,6 +18,7 @@ locals {
}
resource "kubectl_manifest" "postgrest_config" {
count = var.extentions.postgrest.enable ? 1:0
yaml_body = <<-EOF
apiVersion: v1
kind: ConfigMap
@@ -29,9 +30,12 @@ resource "kubectl_manifest" "postgrest_config" {
PGDATABASE: "${var.instance}"
PGHOST: "${var.instance}-${var.component}-rw.${var.namespace}.svc"
PGPORT: "5432"
PGRST_DB_SCHEMA: public
PGRST_DB_ANON_ROLE: anonymous
PGRST_OPENAPI_SERVER_PROXY_URI: "https://${local.prest-dns-name}"
PGRST_ADMIN_SERVER_PORT: "9000"
API_URL: "https://${local.prest-dns-name}"
BASE_URL: "/ui"
EOF
}