From ad2ea79ecc51ea03ff42911ee04211035a6ed838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Huss?= Date: Mon, 23 Oct 2023 13:05:23 +0200 Subject: [PATCH] fix --- share/dataset-pg/index.yaml | 174 +++++++++++++++++----------------- share/dataset-pg/postgrest.tf | 4 +- 2 files changed, 89 insertions(+), 89 deletions(-) diff --git a/share/dataset-pg/index.yaml b/share/dataset-pg/index.yaml index 017a0e7..35fd21e 100644 --- a/share/dataset-pg/index.yaml +++ b/share/dataset-pg/index.yaml @@ -6,98 +6,21 @@ metadata: name: dataset-pg description: null options: - ingress-class: - default: traefik - examples: - - traefik - type: string - backups: - default: - enable: false - endpoint: '' - key-id-key: s3-id - retention: - db: 30d - schedule: - db: 0 3 * * * - secret-key: s3-secret - secret-name: backup-settings - examples: - - enable: false - endpoint: '' - key-id-key: s3-id - retention: - db: 30d - schedule: - db: 0 3 * * * - secret-key: s3-secret - secret-name: backup-settings - properties: - enable: - default: false - type: boolean - endpoint: - default: '' - type: string - key-id-key: - default: s3-id - type: string - retention: - default: - db: 30d - properties: - db: - default: 30d - type: string - type: object - schedule: - default: - db: 0 3 * * * - properties: - db: - default: 0 3 * * * - type: string - type: object - secret-key: - default: s3-secret - type: string - secret-name: - default: backup-settings - type: string - type: object storage: default: 8Gi examples: - 8Gi type: string - databases: - default: [] - items: - properties: - name: - default: db - type: string - type: object - type: array - sub-domain: - default: dataset-pg - examples: - - dataset-pg - type: string - roles: - default: [] - items: - properties: - name: - default: alt-account - type: string - type: object - type: array domain-name: default: your_company.com examples: - your_company.com type: string + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string extentions: default: pool: @@ -204,16 +127,93 @@ options: type: object type: object type: object - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string + databases: + default: [] + items: + properties: + name: + default: db + type: string + type: object + type: array + roles: + default: [] + items: + properties: + name: + default: alt-account + type: string + type: object + type: array replicas: default: 1 examples: - 1 type: integer + sub-domain: + default: dataset-pg + examples: + - dataset-pg + type: string + backups: + default: + enable: false + endpoint: '' + key-id-key: s3-id + retention: + db: 30d + schedule: + db: 0 3 * * * + secret-key: s3-secret + secret-name: backup-settings + examples: + - enable: false + endpoint: '' + key-id-key: s3-id + retention: + db: 30d + schedule: + db: 0 3 * * * + secret-key: s3-secret + secret-name: backup-settings + properties: + enable: + default: false + type: boolean + endpoint: + default: '' + type: string + key-id-key: + default: s3-id + type: string + retention: + default: + db: 30d + properties: + db: + default: 30d + type: string + type: object + schedule: + default: + db: 0 3 * * * + properties: + db: + default: 0 3 * * * + type: string + type: object + secret-key: + default: s3-secret + type: string + secret-name: + default: backup-settings + type: string + type: object + ingress-class: + default: traefik + examples: + - traefik + type: string dependencies: - dist: null category: dbo diff --git a/share/dataset-pg/postgrest.tf b/share/dataset-pg/postgrest.tf index dfdab65..dd37fec 100644 --- a/share/dataset-pg/postgrest.tf +++ b/share/dataset-pg/postgrest.tf @@ -102,7 +102,7 @@ resource "kubectl_manifest" "postgrest_deploy" { periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 - EOF +EOF ], var.extentions.postgrest.swagger.enable?[<<-EOF - name: swagger securityContext: @@ -137,7 +137,7 @@ resource "kubectl_manifest" "postgrest_deploy" { periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 - EOF +EOF ]:[""])) }