This commit is contained in:
2023-10-23 13:59:39 +02:00
parent 0d827d671e
commit 0447808b4a
2 changed files with 32 additions and 33 deletions

View File

@@ -112,30 +112,25 @@ options:
type: object type: object
type: object type: object
type: object type: object
issuer:
default: letsencrypt-prod
examples:
- letsencrypt-prod
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
replicas:
default: 1
examples:
- 1
type: integer
storage: storage:
default: 8Gi default: 8Gi
examples: examples:
- 8Gi - 8Gi
type: string type: string
sub-domain: issuer:
default: dataset-pg default: letsencrypt-prod
examples: examples:
- dataset-pg - letsencrypt-prod
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
domain-name:
default: your_company.com
examples:
- your_company.com
type: string type: string
backups: backups:
default: default:
@@ -191,15 +186,11 @@ options:
default: backup-settings default: backup-settings
type: string type: string
type: object type: object
roles: replicas:
default: [] default: 1
items: examples:
properties: - 1
name: type: integer
default: alt-account
type: string
type: object
type: array
databases: databases:
default: [] default: []
items: items:
@@ -209,11 +200,20 @@ options:
type: string type: string
type: object type: object
type: array type: array
ingress-class: sub-domain:
default: traefik default: dataset-pg
examples: examples:
- traefik - dataset-pg
type: string type: string
roles:
default: []
items:
properties:
name:
default: alt-account
type: string
type: object
type: array
dependencies: dependencies:
- dist: null - dist: null
category: dbo category: dbo

View File

@@ -38,7 +38,7 @@ resource "kubectl_manifest" "postgrest_config" {
resource "kubectl_manifest" "postgrest_deploy" { resource "kubectl_manifest" "postgrest_deploy" {
count = var.extentions.postgrest.enable ? 1:0 count = var.extentions.postgrest.enable ? 1:0
yaml_body = join("", concat([<<-EOF yaml_body = join("", concat([<<EOF
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
@@ -107,8 +107,7 @@ resource "kubectl_manifest" "postgrest_deploy" {
successThreshold: 1 successThreshold: 1
timeoutSeconds: 1 timeoutSeconds: 1
EOF EOF
], var.extentions.postgrest.swagger.enable?[<<-EOF ], var.extentions.postgrest.swagger.enable?[<<EOF
- name: swagger - name: swagger
securityContext: securityContext:
fsGroup: 1000 fsGroup: 1000