add validation and conf via operator CRD

This commit is contained in:
Sergey Dudoladov 2020-03-27 09:38:18 +01:00
parent 8a922e4adc
commit 79cf1a8e86
5 changed files with 9 additions and 0 deletions

View File

@ -64,6 +64,8 @@ spec:
type: boolean type: boolean
enable_shm_volume: enable_shm_volume:
type: boolean type: boolean
should_delete_unused_pvc:
type: boolean
etcd_host: etcd_host:
type: string type: string
max_instances: max_instances:

View File

@ -21,6 +21,8 @@ configGeneral:
enable_crd_validation: true enable_crd_validation: true
# start any new database pod without limitations on shm memory # start any new database pod without limitations on shm memory
enable_shm_volume: true enable_shm_volume: true
# delete PVCs of shutdown pods
should_delete_unused_pvc: false
# etcd connection string for Patroni. Empty uses K8s-native DCS. # etcd connection string for Patroni. Empty uses K8s-native DCS.
etcd_host: "" etcd_host: ""
# Spilo docker image # Spilo docker image

View File

@ -21,6 +21,8 @@ configGeneral:
enable_crd_validation: "true" enable_crd_validation: "true"
# start any new database pod without limitations on shm memory # start any new database pod without limitations on shm memory
enable_shm_volume: "true" enable_shm_volume: "true"
# delete PVCs of shutdown pods
should_delete_unused_pvc: "false"
# etcd connection string for Patroni. Empty uses K8s-native DCS. # etcd connection string for Patroni. Empty uses K8s-native DCS.
etcd_host: "" etcd_host: ""
# Spilo docker image # Spilo docker image

View File

@ -40,6 +40,8 @@ spec:
type: boolean type: boolean
enable_shm_volume: enable_shm_volume:
type: boolean type: boolean
should_delete_unused_pvc:
type: boolean
etcd_host: etcd_host:
type: string type: string
max_instances: max_instances:

View File

@ -7,6 +7,7 @@ configuration:
etcd_host: "" etcd_host: ""
docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p2 docker_image: registry.opensource.zalan.do/acid/spilo-12:1.6-p2
# enable_shm_volume: true # enable_shm_volume: true
# should_delete_unused_pvc: false
max_instances: -1 max_instances: -1
min_instances: -1 min_instances: -1
resync_period: 30m resync_period: 30m