feat: add proxy env var support for AWX containers (#2113)

Add http_proxy, https_proxy, and no_proxy CRD fields to the AWX spec
and inject them into all application containers via a shared proxy-env
ConfigMap, with automatic rollouts when proxy values change.

Assisted by: Claude

Signed-off-by: James Marshall <jamarsha@redhat.com>
This commit is contained in:
jamesmarshall24
2026-04-29 11:22:17 -04:00
committed by GitHub
parent 9c3f521514
commit 7745848ba5
8 changed files with 90 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: '{{ ansible_operator_meta.name }}-proxy-env'
namespace: '{{ ansible_operator_meta.namespace }}'
data:
{% if http_proxy %}
HTTP_PROXY: '{{ http_proxy }}'
http_proxy: '{{ http_proxy }}'
{% endif %}
{% if https_proxy %}
HTTPS_PROXY: '{{ https_proxy }}'
https_proxy: '{{ https_proxy }}'
{% endif %}
{% if no_proxy %}
NO_PROXY: '{{ no_proxy }}'
no_proxy: '{{ no_proxy }}'
{% endif %}