mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 14:22:49 +00:00
Updated image pull policy for backup and restore policy as variable (#1473)
This commit is contained in:
@@ -90,6 +90,17 @@ spec:
|
|||||||
postgres_image_version:
|
postgres_image_version:
|
||||||
description: PostgreSQL container image version to use
|
description: PostgreSQL container image version to use
|
||||||
type: string
|
type: string
|
||||||
|
image_pull_policy:
|
||||||
|
description: The image pull policy
|
||||||
|
type: string
|
||||||
|
default: IfNotPresent
|
||||||
|
enum:
|
||||||
|
- Always
|
||||||
|
- always
|
||||||
|
- Never
|
||||||
|
- never
|
||||||
|
- IfNotPresent
|
||||||
|
- ifnotpresent
|
||||||
db_management_pod_node_selector:
|
db_management_pod_node_selector:
|
||||||
description: nodeSelector for the Postgres pods to backup
|
description: nodeSelector for the Postgres pods to backup
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -94,6 +94,17 @@ spec:
|
|||||||
postgres_image_version:
|
postgres_image_version:
|
||||||
description: PostgreSQL container image version to use
|
description: PostgreSQL container image version to use
|
||||||
type: string
|
type: string
|
||||||
|
image_pull_policy:
|
||||||
|
description: The image pull policy
|
||||||
|
type: string
|
||||||
|
default: IfNotPresent
|
||||||
|
enum:
|
||||||
|
- Always
|
||||||
|
- always
|
||||||
|
- Never
|
||||||
|
- never
|
||||||
|
- IfNotPresent
|
||||||
|
- ifnotpresent
|
||||||
db_management_pod_node_selector:
|
db_management_pod_node_selector:
|
||||||
description: nodeSelector for the Postgres pods to backup
|
description: nodeSelector for the Postgres pods to backup
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -65,6 +65,11 @@ spec:
|
|||||||
x-descriptors:
|
x-descriptors:
|
||||||
- urn:alm:descriptor:com.tectonic.ui:advanced
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
- urn:alm:descriptor:com.tectonic.ui:hidden
|
- urn:alm:descriptor:com.tectonic.ui:hidden
|
||||||
|
- displayName: Image Pull Policy
|
||||||
|
path: image_pull_policy
|
||||||
|
x-descriptors:
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:imagePullPolicy
|
||||||
- displayName: No Log Configuration
|
- displayName: No Log Configuration
|
||||||
path: no_log
|
path: no_log
|
||||||
x-descriptors:
|
x-descriptors:
|
||||||
@@ -135,6 +140,11 @@ spec:
|
|||||||
path: postgres_image_version
|
path: postgres_image_version
|
||||||
x-descriptors:
|
x-descriptors:
|
||||||
- urn:alm:descriptor:com.tectonic.ui:hidden
|
- urn:alm:descriptor:com.tectonic.ui:hidden
|
||||||
|
- displayName: Image Pull Policy
|
||||||
|
path: image_pull_policy
|
||||||
|
x-descriptors:
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:imagePullPolicy
|
||||||
- displayName: Restore Management Pod Resource Requirements
|
- displayName: Restore Management Pod Resource Requirements
|
||||||
path: restore_resource_requirements
|
path: restore_resource_requirements
|
||||||
x-descriptors:
|
x-descriptors:
|
||||||
|
|||||||
@@ -82,6 +82,12 @@ It is also possible to tie the lifetime of the backup files to that of the AWXBa
|
|||||||
clean_backup_on_delete: true
|
clean_backup_on_delete: true
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Variable to define Pull policy.You can pass other options like `Always`, `always`, `Never`, `never`, `IfNotPresent`, `ifnotpresent`.
|
||||||
|
|
||||||
|
```
|
||||||
|
image_pull_policy: 'IfNotPresent'
|
||||||
|
```
|
||||||
|
|
||||||
Variable to define resources limits and request for backup CR.
|
Variable to define resources limits and request for backup CR.
|
||||||
```
|
```
|
||||||
backup_resource_requirements:
|
backup_resource_requirements:
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: {{ ansible_operator_meta.name }}-db-management
|
- name: {{ ansible_operator_meta.name }}-db-management
|
||||||
image: "{{ _postgres_image }}"
|
image: "{{ _postgres_image }}"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: "{{ image_pull_policy }}"
|
||||||
command: ["sleep", "infinity"]
|
command: ["sleep", "infinity"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: {{ ansible_operator_meta.name }}-backup
|
- name: {{ ansible_operator_meta.name }}-backup
|
||||||
|
|||||||
@@ -5,3 +5,4 @@ _postgres_image_version: 13
|
|||||||
backup_complete: false
|
backup_complete: false
|
||||||
database_type: "unmanaged"
|
database_type: "unmanaged"
|
||||||
supported_pg_version: 13
|
supported_pg_version: 13
|
||||||
|
image_pull_policy: IfNotPresent
|
||||||
|
|||||||
@@ -101,6 +101,12 @@ backup_pvc: myoldtower-backup-claim
|
|||||||
backup_dir: /backups/tower-openshift-backup-2021-04-02-03:25:08
|
backup_dir: /backups/tower-openshift-backup-2021-04-02-03:25:08
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Variable to define Pull policy.You can pass other options like `Always`, `always`, `Never`, `never`, `IfNotPresent`, `ifnotpresent`.
|
||||||
|
|
||||||
|
```
|
||||||
|
image_pull_policy: 'IfNotPresent'
|
||||||
|
```
|
||||||
|
|
||||||
Variable to define resources limits and request for restore CR.
|
Variable to define resources limits and request for restore CR.
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: {{ ansible_operator_meta.name }}-db-management
|
- name: {{ ansible_operator_meta.name }}-db-management
|
||||||
image: "{{ _postgres_image }}"
|
image: "{{ _postgres_image }}"
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: "{{ image_pull_policy }}"
|
||||||
command: ["sleep", "infinity"]
|
command: ["sleep", "infinity"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: {{ ansible_operator_meta.name }}-backup
|
- name: {{ ansible_operator_meta.name }}-backup
|
||||||
|
|||||||
@@ -13,3 +13,4 @@ admin_password_secret: '{{ deployment_name }}-admin-password'
|
|||||||
broadcast_websocket_secret: '{{ deployment_name }}-broadcast-websocket'
|
broadcast_websocket_secret: '{{ deployment_name }}-broadcast-websocket'
|
||||||
postgres_configuration_secret: '{{ deployment_name }}-postgres-configuration'
|
postgres_configuration_secret: '{{ deployment_name }}-postgres-configuration'
|
||||||
supported_pg_version: 13
|
supported_pg_version: 13
|
||||||
|
image_pull_policy: IfNotPresent
|
||||||
|
|||||||
Reference in New Issue
Block a user