web: Add volume to handle debug logs (#1921)

When enabling debug web requests, the /var/log/tower directory needs
to exist.
Rather than just creating that directory in the container image then
create an emptyDir volume.

Closes: #1485

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
This commit is contained in:
Dimitri Savineau
2024-07-16 11:58:27 -04:00
committed by GitHub
parent 041270ffbe
commit 36cf9c23ea

View File

@@ -261,6 +261,8 @@ spec:
mountPath: "/etc/receptor/work_public_key.pem"
subPath: "work-public-key.pem"
readOnly: true
- name: {{ ansible_operator_meta.name }}-web-log
mountPath: /var/log/tower
{% if development_mode | bool %}
- name: awx-devel
mountPath: "/awx_devel"
@@ -456,6 +458,8 @@ spec:
emptyDir: {}
- name: receptor-socket
emptyDir: {}
- name: {{ ansible_operator_meta.name }}-web-log
emptyDir: {}
- name: {{ ansible_operator_meta.name }}-receptor-config
configMap:
name: '{{ ansible_operator_meta.name }}-{{ deployment_type }}-configmap'