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

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

View File

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

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: