mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-30 07:13:10 +00:00
* Move label templates into `common` role So that there is single source of labels management, and labels are unified across the other roles * Introduce `additional_labels` * Fix paths for labels templates * Return `additional_labels_items` as list * Add molecule tests
17 lines
572 B
Django/Jinja
17 lines
572 B
Django/Jinja
# Postgres Secret.
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: '{{ ansible_operator_meta.name }}-postgres-configuration'
|
|
namespace: '{{ ansible_operator_meta.namespace }}'
|
|
labels:
|
|
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
|
|
stringData:
|
|
password: '{{ lookup('password', '/dev/null length=32 chars=ascii_letters,digits') }}'
|
|
username: '{{ database_username }}'
|
|
database: '{{ database_name }}'
|
|
port: '5432'
|
|
host: {{ ansible_operator_meta.name }}-postgres-{{ supported_pg_version }}
|
|
type: 'managed'
|