mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 14:22:49 +00:00
Bump dependencies stream (#841)
* Bump Postgresql, Nginx and Redis versions * pg12 --> pg13 upgrade path * Set supported pg version as a variable to remain DRY * Make deleting the old db data pvc after upgrade configurable * Use labels to find the postgres pod * backup/restore: fix postgres label selector value We need to use the deployment_name variable for the postgres instance name. Signed-off-by: Dimitri Savineau <dsavinea@redhat.com> * backup/restore: add missing default supported_pg_version variable Signed-off-by: Dimitri Savineau <dsavinea@redhat.com> * restore: update database_host fact with pg suffix Signed-off-by: Dimitri Savineau <dsavinea@redhat.com> Co-authored-by: Dimitri Savineau <dsavinea@redhat.com>
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
- block:
|
||||
- name: Delete pod to reload a resource configuration
|
||||
set_fact:
|
||||
postgres_label_selector: "app.kubernetes.io/instance=postgres-{{ deployment_name }}"
|
||||
postgres_label_selector: "app.kubernetes.io/instance=postgres-{{ supported_pg_version }}-{{ deployment_name }}"
|
||||
when: postgres_label_selector is not defined
|
||||
|
||||
- name: Get the postgres pod information
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
deployment_type: "awx"
|
||||
_postgres_image: postgres
|
||||
_postgres_image_version: 12
|
||||
_postgres_image_version: 13
|
||||
backup_complete: false
|
||||
database_type: "unmanaged"
|
||||
supported_pg_version: 13
|
||||
|
||||
Reference in New Issue
Block a user