This commit is contained in:
2023-10-23 13:57:21 +02:00
parent 63f4b3377c
commit 0d827d671e
2 changed files with 45 additions and 62 deletions

View File

@@ -6,31 +6,6 @@ metadata:
name: dataset-pg name: dataset-pg
description: null description: null
options: options:
storage:
default: 8Gi
examples:
- 8Gi
type: string
sub-domain:
default: dataset-pg
examples:
- dataset-pg
type: string
ingress-class:
default: traefik
examples:
- traefik
type: string
replicas:
default: 1
examples:
- 1
type: integer
domain-name:
default: your_company.com
examples:
- your_company.com
type: string
extentions: extentions:
default: default:
pool: pool:
@@ -137,29 +112,31 @@ options:
type: object type: object
type: object type: object
type: object type: object
databases:
default: []
items:
properties:
name:
default: db
type: string
type: object
type: array
issuer: issuer:
default: letsencrypt-prod default: letsencrypt-prod
examples: examples:
- letsencrypt-prod - letsencrypt-prod
type: string type: string
roles: domain-name:
default: [] default: your_company.com
items: examples:
properties: - your_company.com
name: type: string
default: alt-account replicas:
type: string default: 1
type: object examples:
type: array - 1
type: integer
storage:
default: 8Gi
examples:
- 8Gi
type: string
sub-domain:
default: dataset-pg
examples:
- dataset-pg
type: string
backups: backups:
default: default:
enable: false enable: false
@@ -214,6 +191,29 @@ options:
default: backup-settings default: backup-settings
type: string type: string
type: object type: object
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
ingress-class:
default: traefik
examples:
- traefik
type: string
dependencies: dependencies:
- dist: null - dist: null
category: dbo category: dbo

View File

@@ -107,7 +107,8 @@ resource "kubectl_manifest" "postgrest_deploy" {
successThreshold: 1 successThreshold: 1
timeoutSeconds: 1 timeoutSeconds: 1
EOF EOF
], var.extentions.postgrest.swagger.enable&&false?[<<-EOF ], var.extentions.postgrest.swagger.enable?[<<-EOF
- name: swagger - name: swagger
securityContext: securityContext:
fsGroup: 1000 fsGroup: 1000
@@ -123,24 +124,6 @@ EOF
envFrom: envFrom:
- configMapRef: - configMapRef:
name: "${var.component}-${var.instance}-postgrest" name: "${var.component}-${var.instance}-postgrest"
livenessProbe:
failureThreshold: 3
httpGet:
path: /
port: swagger
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
readinessProbe:
failureThreshold: 3
httpGet:
path: /
port: swagger
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
EOF EOF
]:[""])) ]:[""]))
} }