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