mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-08 22:33:35 +00:00
Adding postgres annotations support (#1829)
* Adding postgres annotations support Authored-by: Imed Aouidene <imaouide@imaouide-thinkpadt14sgen2i.cdg.csb>
This commit is contained in:
@@ -221,6 +221,9 @@ spec:
|
|||||||
web_annotations:
|
web_annotations:
|
||||||
description: Web deployment annotations. This will override the general annotations parameter for the Web deployment.
|
description: Web deployment annotations. This will override the general annotations parameter for the Web deployment.
|
||||||
type: string
|
type: string
|
||||||
|
postgres_annotations:
|
||||||
|
description: Annotations to add to the Postgres deployment.
|
||||||
|
type: string
|
||||||
tolerations:
|
tolerations:
|
||||||
description: node tolerations for the pods
|
description: node tolerations for the pods
|
||||||
type: string
|
type: string
|
||||||
|
|||||||
@@ -951,6 +951,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: Postgres Annotations
|
||||||
|
path: postgres_annotations
|
||||||
|
x-descriptors:
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||||
|
- urn:alm:descriptor:com.tectonic.ui:hidden
|
||||||
- displayName: Tolerations
|
- displayName: Tolerations
|
||||||
path: tolerations
|
path: tolerations
|
||||||
x-descriptors:
|
x-descriptors:
|
||||||
|
|||||||
@@ -212,6 +212,12 @@ task_annotations: ''
|
|||||||
# my.web-annotation/2: value2
|
# my.web-annotation/2: value2
|
||||||
web_annotations: ''
|
web_annotations: ''
|
||||||
|
|
||||||
|
# Add annotations to postgres pod. Specify as literal block. E.g.:
|
||||||
|
# postgres_annotations: |
|
||||||
|
# my.annotation/1: value
|
||||||
|
# my.annotation/2: value2
|
||||||
|
postgres_annotations: ''
|
||||||
|
|
||||||
admin_user: admin
|
admin_user: admin
|
||||||
admin_email: test@example.com
|
admin_email: test@example.com
|
||||||
|
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ spec:
|
|||||||
app.kubernetes.io/component: 'database'
|
app.kubernetes.io/component: 'database'
|
||||||
app.kubernetes.io/part-of: '{{ ansible_operator_meta.name }}'
|
app.kubernetes.io/part-of: '{{ ansible_operator_meta.name }}'
|
||||||
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
|
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
|
||||||
|
{% if postgres_annotations %}
|
||||||
|
{{ postgres_annotations | indent(width=8) }}
|
||||||
|
{% endif %}
|
||||||
spec:
|
spec:
|
||||||
{% if image_pull_secret is defined %}
|
{% if image_pull_secret is defined %}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
|
|||||||
Reference in New Issue
Block a user