fix
This commit is contained in:
@@ -16,9 +16,6 @@ locals {
|
|||||||
pg_username = data.kubernetes_secret_v1.postgresql_password.data["username"]
|
pg_username = data.kubernetes_secret_v1.postgresql_password.data["username"]
|
||||||
pg_password = data.kubernetes_secret_v1.postgresql_password.data["password"]
|
pg_password = data.kubernetes_secret_v1.postgresql_password.data["password"]
|
||||||
pg_host = "${var.instance}-${var.component}-rw.${var.namespace}.svc"
|
pg_host = "${var.instance}-${var.component}-rw.${var.namespace}.svc"
|
||||||
pg-username = data.kubernetes_secret_v1.postgresql_password.data["username"]
|
|
||||||
pg-password = data.kubernetes_secret_v1.postgresql_password.data["password"]
|
|
||||||
pg-host = "${var.instance}-${var.component}-rw.${var.namespace}.svc"
|
|
||||||
|
|
||||||
sorted-db-name = reverse(distinct(sort([
|
sorted-db-name = reverse(distinct(sort([
|
||||||
for db in var.databases: db.name
|
for db in var.databases: db.name
|
||||||
|
|||||||
@@ -6,16 +6,50 @@ metadata:
|
|||||||
name: dataset-pg
|
name: dataset-pg
|
||||||
description: null
|
description: null
|
||||||
options:
|
options:
|
||||||
app_group:
|
images:
|
||||||
default: api
|
default:
|
||||||
|
postgresql:
|
||||||
|
registry: ghcr.io
|
||||||
|
repository: cloudnative-pg/postgresql
|
||||||
|
tag: 15.3
|
||||||
examples:
|
examples:
|
||||||
- api
|
- postgresql:
|
||||||
type: string
|
registry: ghcr.io
|
||||||
domain:
|
repository: cloudnative-pg/postgresql
|
||||||
default: your-company
|
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
|
||||||
|
ingress_class:
|
||||||
|
default: traefik
|
||||||
examples:
|
examples:
|
||||||
- your-company
|
- traefik
|
||||||
type: string
|
type: string
|
||||||
|
postgres:
|
||||||
|
default:
|
||||||
|
replicas: 1
|
||||||
|
examples:
|
||||||
|
- replicas: 1
|
||||||
|
properties:
|
||||||
|
replicas:
|
||||||
|
default: 1
|
||||||
|
type: integer
|
||||||
|
type: object
|
||||||
storage:
|
storage:
|
||||||
default:
|
default:
|
||||||
postgres:
|
postgres:
|
||||||
@@ -33,16 +67,31 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: object
|
type: object
|
||||||
domain_name:
|
sub-domain:
|
||||||
default: your_company.com
|
default: dataset-pg
|
||||||
examples:
|
examples:
|
||||||
- your_company.com
|
- dataset-pg
|
||||||
type: string
|
type: string
|
||||||
issuer:
|
issuer:
|
||||||
default: letsencrypt-prod
|
default: letsencrypt-prod
|
||||||
examples:
|
examples:
|
||||||
- letsencrypt-prod
|
- letsencrypt-prod
|
||||||
type: string
|
type: string
|
||||||
|
domain_name:
|
||||||
|
default: your_company.com
|
||||||
|
examples:
|
||||||
|
- your_company.com
|
||||||
|
type: string
|
||||||
|
app_group:
|
||||||
|
default: api
|
||||||
|
examples:
|
||||||
|
- api
|
||||||
|
type: string
|
||||||
|
domain:
|
||||||
|
default: your-company
|
||||||
|
examples:
|
||||||
|
- your-company
|
||||||
|
type: string
|
||||||
extentions:
|
extentions:
|
||||||
default:
|
default:
|
||||||
directus:
|
directus:
|
||||||
@@ -224,6 +273,15 @@ 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
|
||||||
roles:
|
roles:
|
||||||
default: []
|
default: []
|
||||||
items:
|
items:
|
||||||
@@ -233,16 +291,6 @@ options:
|
|||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
type: array
|
type: array
|
||||||
postgres:
|
|
||||||
default:
|
|
||||||
replicas: 1
|
|
||||||
examples:
|
|
||||||
- replicas: 1
|
|
||||||
properties:
|
|
||||||
replicas:
|
|
||||||
default: 1
|
|
||||||
type: integer
|
|
||||||
type: object
|
|
||||||
backups:
|
backups:
|
||||||
default:
|
default:
|
||||||
enable: false
|
enable: false
|
||||||
@@ -297,54 +345,6 @@ options:
|
|||||||
default: backup-settings
|
default: backup-settings
|
||||||
type: string
|
type: string
|
||||||
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
|
|
||||||
sub-domain:
|
|
||||||
default: dataset-pg
|
|
||||||
examples:
|
|
||||||
- dataset-pg
|
|
||||||
type: string
|
|
||||||
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
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ locals {
|
|||||||
}
|
}
|
||||||
|
|
||||||
resource "kubectl_manifest" "db_secret_role" {
|
resource "kubectl_manifest" "db_secret_role" {
|
||||||
|
depends_on = [ data.kubernetes_secret_v1.postgresql_password ]
|
||||||
ignore_fields = ["metadata.annotations"]
|
ignore_fields = ["metadata.annotations"]
|
||||||
count = length(local.sorted-roles)
|
count = length(local.sorted-roles)
|
||||||
yaml_body = <<-EOF
|
yaml_body = <<-EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user