Adding postgres annotations support (#1829)

* Adding postgres annotations support

Authored-by: Imed Aouidene <imaouide@imaouide-thinkpadt14sgen2i.cdg.csb>
This commit is contained in:
Imed
2024-07-24 20:45:06 +02:00
committed by GitHub
parent d42737993f
commit 8224b0b354
4 changed files with 17 additions and 0 deletions

View File

@@ -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

View File

@@ -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: