add AWX_COMPONENT env var

for awx to be able to identify which component it is running in code
This commit is contained in:
Hao Liu
2023-03-22 15:34:54 -04:00
parent 6fd5ca918b
commit 1106ef54ee
2 changed files with 4 additions and 0 deletions

View File

@@ -238,6 +238,8 @@ spec:
- /var/lib/pre-stop/scripts/termination-master
{% endif %}
env:
- name: AWX_COMPONENT
value: "task"
- name: SUPERVISOR_WEB_CONFIG_PATH
value: "/etc/supervisord.conf"
- name: AWX_SKIP_MIGRATIONS

View File

@@ -180,6 +180,8 @@ spec:
{{ web_extra_volume_mounts | indent(width=12, first=True) }}
{% endif %}
env:
- name: AWX_COMPONENT
value: "web"
- name: MY_POD_NAMESPACE
valueFrom:
fieldRef: