Make postgres image and version separately configurable for backup/restore

- Update templated and generated manifest files
This commit is contained in:
Christian M. Adams
2021-06-01 17:37:11 -04:00
parent e857902dcc
commit 69b3f43414
11 changed files with 54 additions and 4 deletions

View File

@@ -46,6 +46,12 @@ spec:
postgres_label_selector:
description: Label selector used to identify postgres pod for backing up data
type: string
postgres_image:
description: Registry path to the PostgreSQL container to use
type: string
postgres_image_version:
description: PostgreSQL container image version to use
type: string
status:
type: object
properties:

View File

@@ -50,6 +50,12 @@ spec:
postgres_label_selector:
description: Label selector used to identify postgres pod for backing up data
type: string
postgres_image:
description: Registry path to the PostgreSQL container to use
type: string
postgres_image_version:
description: PostgreSQL container image version to use
type: string
status:
type: object
properties:

View File

@@ -448,6 +448,12 @@ spec:
postgres_label_selector:
description: Label selector used to identify postgres pod for backing up data
type: string
postgres_image:
description: Registry path to the PostgreSQL container to use
type: string
postgres_image_version:
description: PostgreSQL container image version to use
type: string
status:
type: object
properties:
@@ -525,6 +531,12 @@ spec:
postgres_label_selector:
description: Label selector used to identify postgres pod for backing up data
type: string
postgres_image:
description: Registry path to the PostgreSQL container to use
type: string
postgres_image_version:
description: PostgreSQL container image version to use
type: string
status:
type: object
properties:

View File

@@ -46,6 +46,12 @@ spec:
postgres_label_selector:
description: Label selector used to identify postgres pod for backing up data
type: string
postgres_image:
description: Registry path to the PostgreSQL container to use
type: string
postgres_image_version:
description: PostgreSQL container image version to use
type: string
status:
type: object
properties:

View File

@@ -50,6 +50,12 @@ spec:
postgres_label_selector:
description: Label selector used to identify postgres pod for backing up data
type: string
postgres_image:
description: Registry path to the PostgreSQL container to use
type: string
postgres_image_version:
description: PostgreSQL container image version to use
type: string
status:
type: object
properties:

View File

@@ -34,6 +34,12 @@ spec:
deployment_name:
description: Name of the deployment to be backed up
type: string
postgres_image:
description: Registry path to the PostgreSQL container to use
type: string
postgres_image_version:
description: PostgreSQL container image version to use
type: string
postgres_label_selector:
description: Label selector used to identify postgres pod for backing
up data

View File

@@ -42,6 +42,12 @@ spec:
deployment_name:
description: Name of the deployment to be restored to
type: string
postgres_image:
description: Registry path to the PostgreSQL container to use
type: string
postgres_image_version:
description: PostgreSQL container image version to use
type: string
postgres_label_selector:
description: Label selector used to identify postgres pod for backing
up data

View File

@@ -13,7 +13,7 @@ metadata:
spec:
containers:
- name: {{ meta.name }}-db-management
image: "{{ postgres_image }}"
image: "{{ postgres_image }}:{{ postgres_image_version }}"
imagePullPolicy: Always
command: ["sleep", "infinity"]
volumeMounts:

View File

@@ -1,5 +1,6 @@
---
deployment_type: "awx"
postgres_image: postgres:12
postgres_image: postgres
postgres_image_version: 12
backup_complete: false
database_type: "unmanaged"

View File

@@ -13,7 +13,7 @@ metadata:
spec:
containers:
- name: {{ meta.name }}-db-management
image: "{{ postgres_image }}"
image: "{{ postgres_image }}:{{ postgres_image_version }}"
imagePullPolicy: Always
command: ["sleep", "infinity"]
volumeMounts:

View File

@@ -1,7 +1,8 @@
---
deployment_type: "awx"
postgres_image: postgres:12
postgres_image: postgres
postgres_image_version: 12
backup_api_version: '{{ deployment_type }}.ansible.com/v1beta1'
backup_kind: 'AWXBackup'