mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-29 06:43:11 +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
18 lines
461 B
Django/Jinja
18 lines
461 B
Django/Jinja
{% for secret in secrets %}
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: '{{ secrets[secret]['name'] }}'
|
|
namespace: '{{ ansible_operator_meta.namespace }}'
|
|
labels:
|
|
{{ lookup("template", "../common/templates/labels/common.yaml.j2") | indent(width=4) | trim }}
|
|
type: '{{ secrets[secret]['type'] }}'
|
|
stringData:
|
|
{% for key, value in secrets[secret]['data'].items() %}
|
|
{{ key }}: |-
|
|
{{ value | b64decode | indent(4) }}
|
|
{% endfor %}
|
|
|
|
{% endfor %}
|