diff --git a/share/dataset-pg/index.yaml b/share/dataset-pg/index.yaml index 89a2f29..defce10 100644 --- a/share/dataset-pg/index.yaml +++ b/share/dataset-pg/index.yaml @@ -6,20 +6,20 @@ metadata: name: dataset-pg description: null options: - ingress_class: - default: traefik - examples: - - traefik - type: string app_group: default: api examples: - api type: string - domain_name: - default: your_company.com + ingress_class: + default: traefik examples: - - your_company.com + - traefik + type: string + domain: + default: your-company + examples: + - your-company type: string extentions: default: @@ -202,86 +202,6 @@ options: type: object type: object type: object - roles: - default: [] - items: - properties: - name: - default: alt-account - type: string - type: object - type: array - images: - default: - postgresql: - registry: ghcr.io - repository: cloudnative-pg/postgresql - tag: 15.3 - examples: - - postgresql: - registry: ghcr.io - repository: cloudnative-pg/postgresql - tag: 15.3 - properties: - postgresql: - default: - registry: ghcr.io - repository: cloudnative-pg/postgresql - tag: 15.3 - properties: - registry: - default: ghcr.io - type: string - repository: - default: cloudnative-pg/postgresql - type: string - tag: - default: 15.3 - type: number - type: object - type: object - storage: - default: - postgres: - size: 10Gi - examples: - - postgres: - size: 10Gi - properties: - postgres: - default: - size: 10Gi - properties: - size: - default: 10Gi - type: string - type: object - type: object - domain: - default: your-company - examples: - - your-company - type: string - postgres: - default: - replicas: 1 - examples: - - replicas: 1 - properties: - replicas: - default: 1 - type: integer - type: object - sub_domain: - default: dataset-pg - examples: - - dataset-pg - type: string - issuer: - default: letsencrypt-prod - examples: - - letsencrypt-prod - type: string backups: default: enable: false @@ -336,6 +256,11 @@ options: default: backup-settings type: string type: object + domain_name: + default: your_company.com + examples: + - your_company.com + type: string databases: default: [] items: @@ -345,6 +270,81 @@ options: type: string type: object type: array + roles: + default: [] + items: + properties: + name: + default: alt-account + type: string + type: object + type: array + images: + default: + postgresql: + registry: ghcr.io + repository: cloudnative-pg/postgresql + tag: 15.3 + examples: + - postgresql: + registry: ghcr.io + repository: cloudnative-pg/postgresql + tag: 15.3 + properties: + postgresql: + default: + registry: ghcr.io + repository: cloudnative-pg/postgresql + tag: 15.3 + properties: + registry: + default: ghcr.io + type: string + repository: + default: cloudnative-pg/postgresql + type: string + tag: + default: 15.3 + type: number + type: object + type: object + postgres: + default: + replicas: 1 + examples: + - replicas: 1 + properties: + replicas: + default: 1 + type: integer + type: object + issuer: + default: letsencrypt-prod + examples: + - letsencrypt-prod + type: string + storage: + default: + postgres: + size: 10Gi + examples: + - postgres: + size: 10Gi + properties: + postgres: + default: + size: 10Gi + properties: + size: + default: 10Gi + type: string + type: object + type: object + sub_domain: + default: dataset-pg + examples: + - dataset-pg + type: string dependencies: - dist: null category: dbo diff --git a/share/dataset-pg/postgresql.tf b/share/dataset-pg/postgresql.tf index ebd2f56..4657029 100644 --- a/share/dataset-pg/postgresql.tf +++ b/share/dataset-pg/postgresql.tf @@ -16,6 +16,9 @@ resource "kubectl_manifest" "prj_pg" { name: "${var.instance}-${var.component}" namespace: "${var.namespace}" labels: ${jsonencode(local.pg-labels)} + annotations: + "k8up.io/backupcommand": "pg_dumpall -U postgres --clean" + "k8up.io/file-extension": ".sql" spec: instances: ${var.postgres.replicas} imageName: "${var.images.postgresql.registry}/${var.images.postgresql.repository}:${var.images.postgresql.tag}"