fix
This commit is contained in:
@@ -62,7 +62,7 @@ data "kubernetes_secret_v1" "password_get" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "postgresql_role" "owner" {
|
resource "postgresql_role" "owner" {
|
||||||
depends_on = [ time_sleep.wait_pg_ready ]
|
depends_on = [ time_sleep.wait_pg_ready, kubectl_manifest.prj_pg, data.kubernetes_secret_v1.postgresql_password ]
|
||||||
count = length(local.sorted-dbs)
|
count = length(local.sorted-dbs)
|
||||||
name = "${local.sorted-dbs[count.index].name}"
|
name = "${local.sorted-dbs[count.index].name}"
|
||||||
login = true
|
login = true
|
||||||
|
|||||||
@@ -6,35 +6,41 @@ metadata:
|
|||||||
name: dataset-pg
|
name: dataset-pg
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
images:
|
issuer:
|
||||||
default:
|
default: letsencrypt-prod
|
||||||
postgresql:
|
|
||||||
registry: ghcr.io
|
|
||||||
repository: cloudnative-pg/postgresql
|
|
||||||
tag: 15.3
|
|
||||||
examples:
|
examples:
|
||||||
- postgresql:
|
- letsencrypt-prod
|
||||||
registry: ghcr.io
|
type: string
|
||||||
repository: cloudnative-pg/postgresql
|
postgres:
|
||||||
tag: 15.3
|
default:
|
||||||
|
replicas: 1
|
||||||
|
examples:
|
||||||
|
- replicas: 1
|
||||||
properties:
|
properties:
|
||||||
postgresql:
|
replicas:
|
||||||
default:
|
default: 1
|
||||||
registry: ghcr.io
|
type: integer
|
||||||
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
|
type: object
|
||||||
|
sub-domain:
|
||||||
|
default: dataset-pg
|
||||||
|
examples:
|
||||||
|
- dataset-pg
|
||||||
|
type: string
|
||||||
|
ingress_class:
|
||||||
|
default: traefik
|
||||||
|
examples:
|
||||||
|
- traefik
|
||||||
|
type: string
|
||||||
|
domain_name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
app_group:
|
||||||
|
default: api
|
||||||
|
examples:
|
||||||
|
- api
|
||||||
|
type: string
|
||||||
backups:
|
backups:
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: false
|
||||||
@@ -89,36 +95,15 @@ options:
|
|||||||
default: backup-settings
|
default: backup-settings
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
domain:
|
roles:
|
||||||
default: your-company
|
default: []
|
||||||
examples:
|
items:
|
||||||
- your-company
|
properties:
|
||||||
type: string
|
name:
|
||||||
sub-domain:
|
default: alt-account
|
||||||
default: dataset-pg
|
type: string
|
||||||
examples:
|
type: object
|
||||||
- dataset-pg
|
type: array
|
||||||
type: string
|
|
||||||
issuer:
|
|
||||||
default: letsencrypt-prod
|
|
||||||
examples:
|
|
||||||
- letsencrypt-prod
|
|
||||||
type: string
|
|
||||||
ingress_class:
|
|
||||||
default: traefik
|
|
||||||
examples:
|
|
||||||
- traefik
|
|
||||||
type: string
|
|
||||||
postgres:
|
|
||||||
default:
|
|
||||||
replicas: 1
|
|
||||||
examples:
|
|
||||||
- replicas: 1
|
|
||||||
properties:
|
|
||||||
replicas:
|
|
||||||
default: 1
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
storage:
|
storage:
|
||||||
default:
|
default:
|
||||||
postgres:
|
postgres:
|
||||||
@@ -136,16 +121,6 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
app_group:
|
|
||||||
default: api
|
|
||||||
examples:
|
|
||||||
- api
|
|
||||||
type: string
|
|
||||||
domain_name:
|
|
||||||
default: your_company.com
|
|
||||||
examples:
|
|
||||||
- your_company.com
|
|
||||||
type: string
|
|
||||||
extentions:
|
extentions:
|
||||||
default:
|
default:
|
||||||
directus:
|
directus:
|
||||||
@@ -327,6 +302,40 @@ options:
|
|||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
|
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
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
databases:
|
databases:
|
||||||
default: []
|
default: []
|
||||||
items:
|
items:
|
||||||
@@ -336,15 +345,6 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
roles:
|
|
||||||
default: []
|
|
||||||
items:
|
|
||||||
properties:
|
|
||||||
name:
|
|
||||||
default: alt-account
|
|
||||||
type: string
|
|
||||||
type: object
|
|
||||||
type: array
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- dist: null
|
- dist: null
|
||||||
category: dbo
|
category: dbo
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ data "kubernetes_secret_v1" "password_role_get" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "postgresql_role" "role" {
|
resource "postgresql_role" "role" {
|
||||||
depends_on = [ time_sleep.wait_pg_ready ]
|
depends_on = [ time_sleep.wait_pg_ready, kubectl_manifest.prj_pg, data.kubernetes_secret_v1.postgresql_password ]
|
||||||
count = length(local.sorted-roles)
|
count = length(local.sorted-roles)
|
||||||
name = "${local.sorted-roles[count.index].name}"
|
name = "${local.sorted-roles[count.index].name}"
|
||||||
login = true
|
login = true
|
||||||
|
|||||||
Reference in New Issue
Block a user