From f0455746a02405d36fe1c434219170c6a344c3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Mon, 23 Oct 2023 13:13:28 +0200 Subject: [PATCH] fix --- share/dataset-pg/index.yaml | 76 +++++++++++++++++------------------ share/dataset-pg/postgrest.tf | 2 +- 2 files changed, 39 insertions(+), 39 deletions(-) diff --git a/share/dataset-pg/index.yaml b/share/dataset-pg/index.yaml index 8e87c8f..76de994 100644 --- a/share/dataset-pg/index.yaml +++ b/share/dataset-pg/index.yaml @@ -11,6 +11,20 @@ options: examples: - 1 type: integer + databases: + default: [] + items: + properties: + name: + default: db + type: string + type: object + type: array + domain-name: + default: your_company.com + examples: + - your_company.com + type: string extentions: default: pool: @@ -117,6 +131,30 @@ options: type: object type: object type: object + storage: + default: 8Gi + examples: + - 8Gi + type: string + sub-domain: + default: dataset-pg + examples: + - dataset-pg + type: string + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + roles: + default: [] + items: + properties: + name: + default: alt-account + type: string + type: object + type: array ingress-class: default: traefik examples: @@ -176,44 +214,6 @@ options: default: backup-settings type: string type: object - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string - domain-name: - default: your_company.com - examples: - - your_company.com - type: string - roles: - default: [] - items: - properties: - name: - default: alt-account - type: string - type: object - type: array - databases: - default: [] - items: - properties: - name: - default: db - type: string - type: object - type: array - sub-domain: - default: dataset-pg - examples: - - dataset-pg - type: string - storage: - default: 8Gi - examples: - - 8Gi - type: string dependencies: - dist: null category: dbo diff --git a/share/dataset-pg/postgrest.tf b/share/dataset-pg/postgrest.tf index 200eea7..874eeac 100644 --- a/share/dataset-pg/postgrest.tf +++ b/share/dataset-pg/postgrest.tf @@ -27,7 +27,7 @@ resource "kubectl_manifest" "postgrest_config" { labels: ${jsonencode(local.prest-labels)} data: PGDATABASE: "${var.instance}" - PGHOST: "${var.instance}-${var.component}-pg-rw.${var.namespace}.svc" + PGHOST: "${var.instance}-${var.component}-rw.${var.namespace}.svc" PGPORT: "5432" PGRST_OPENAPI_SERVER_PROXY_URI: "https://${local.prest-dns-name}" API_URL: "https://${local.prest-dns-name}"