EE: Allow one to specify extra environment variable

This commit is contained in:
Yanis Guenane
2021-06-17 10:20:12 +02:00
parent 12f9fff6d5
commit 3899365da7
8 changed files with 23 additions and 1 deletions

View File

@@ -149,6 +149,7 @@ web_resource_requirements:
# value: bing
task_extra_env: ''
web_extra_env: ''
ee_extra_env: ''
# Mount extra volumes on the AWX task/web containers. Specify as literal block.
# E.g.:

View File

@@ -221,13 +221,16 @@ spec:
{% if ee_extra_volume_mounts -%}
{{ ee_extra_volume_mounts | indent(width=12, indentfirst=True) }}
{% endif %}
{% if development_mode | bool %}
env:
{% if development_mode | bool %}
- name: SDB_NOTIFY_HOST
valueFrom:
fieldRef:
fieldPath: status.podIP
{% endif %}
{% if ee_extra_env -%}
{{ ee_extra_env | indent(width=12, indentfirst=True) }}
{% endif %}
{% if node_selector %}
nodeSelector:
{{ node_selector | indent(width=8) }}