Allow custom postgres pod label to support user managed pg pods

- Only set resolvable pg host path for pg container when managed
This commit is contained in:
Christian M. Adams
2021-04-22 13:49:28 -04:00
parent ff9248e971
commit 867bc258b9
12 changed files with 59 additions and 4 deletions

View File

@@ -58,6 +58,9 @@ spec:
tower_old_postgres_configuration_secret:
description: Secret where the old database configuration can be found for data migration
type: string
postgres_label_selector:
description: Label selector used to identify postgres pod for data migration
type: string
tower_secret_key_secret:
description: Secret where the secret key can be found
type: string

View File

@@ -53,5 +53,9 @@ spec:
tower_postgres_configuration_secret:
description: Custom postgres_configuration secret name
type: string
postgres_label_selector:
description: Label selector used to identify postgres pod for backing up data
type: string
oneOf:
- required: ["tower_name"]

View File

@@ -50,5 +50,8 @@ spec:
tower_postgres_configuration_secret:
description: Custom postgres_configuration secret name
type: string
postgres_label_selector:
description: Label selector used to identify postgres pod for backing up data
type: string
oneOf:
- required: ["tower_name", "tower_backup_pvc", "tower_backup_pvc_namespace", "tower_backup_dir"]