Files
awx-operator/roles/installer/templates/configmaps/proxy-env.configmap.yaml.j2
jamesmarshall24 7745848ba5 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>
2026-04-29 11:22:17 -04:00

20 lines
446 B
Django/Jinja

---
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 %}