mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +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:
|
||||
description: Web deployment annotations. This will override the general annotations parameter for the Web deployment.
|
||||
type: string
|
||||
postgres_annotations:
|
||||
description: Annotations to add to the Postgres deployment.
|
||||
type: string
|
||||
tolerations:
|
||||
description: node tolerations for the pods
|
||||
type: string
|
||||
|
||||
@@ -951,6 +951,11 @@ spec:
|
||||
x-descriptors:
|
||||
- urn:alm:descriptor:com.tectonic.ui:advanced
|
||||
- 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
|
||||
path: tolerations
|
||||
x-descriptors:
|
||||
|
||||
@@ -212,6 +212,12 @@ task_annotations: ''
|
||||
# my.web-annotation/2: value2
|
||||
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_email: test@example.com
|
||||
|
||||
|
||||
@@ -34,6 +34,9 @@ spec:
|
||||
app.kubernetes.io/component: 'database'
|
||||
app.kubernetes.io/part-of: '{{ ansible_operator_meta.name }}'
|
||||
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
|
||||
{% if postgres_annotations %}
|
||||
{{ postgres_annotations | indent(width=8) }}
|
||||
{% endif %}
|
||||
spec:
|
||||
{% if image_pull_secret is defined %}
|
||||
imagePullSecrets:
|
||||
|
||||
Reference in New Issue
Block a user