fix
This commit is contained in:
@@ -6,11 +6,6 @@ metadata:
|
||||
name: dataset-pg
|
||||
description: null
|
||||
options:
|
||||
roles:
|
||||
default: []
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
backups:
|
||||
default:
|
||||
enable: false
|
||||
@@ -65,26 +60,33 @@ options:
|
||||
default: backup-settings
|
||||
type: string
|
||||
type: object
|
||||
storage:
|
||||
default: 8Gi
|
||||
examples:
|
||||
- 8Gi
|
||||
type: string
|
||||
pool:
|
||||
roles:
|
||||
default: []
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
extentions:
|
||||
default:
|
||||
enable: false
|
||||
pool:
|
||||
enable: false
|
||||
examples:
|
||||
- enable: false
|
||||
- pool:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
pool:
|
||||
default:
|
||||
enable: false
|
||||
properties:
|
||||
enable:
|
||||
default: false
|
||||
type: boolean
|
||||
type: object
|
||||
type: object
|
||||
version:
|
||||
default: '14'
|
||||
replicas:
|
||||
default: 1
|
||||
examples:
|
||||
- '14'
|
||||
type: string
|
||||
- 1
|
||||
type: integer
|
||||
databases:
|
||||
default: []
|
||||
items:
|
||||
@@ -94,6 +96,11 @@ options:
|
||||
type: string
|
||||
type: object
|
||||
type: array
|
||||
storage:
|
||||
default: 8Gi
|
||||
examples:
|
||||
- 8Gi
|
||||
type: string
|
||||
dependencies: []
|
||||
providers:
|
||||
kubernetes: true
|
||||
|
||||
@@ -56,7 +56,7 @@ resource "kubectl_manifest" "prj_pg_backup" {
|
||||
}
|
||||
|
||||
resource "kubectl_manifest" "prj_pg_pool" {
|
||||
count = var.pool.enable ? 1:0
|
||||
count = var.extentions.pool.enable ? 1:0
|
||||
depends_on = [kubectl_manifest.prj_pg]
|
||||
yaml_body = <<-EOF
|
||||
apiVersion: postgresql.cnpg.io/v1
|
||||
|
||||
Reference in New Issue
Block a user