mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-06 21:32:52 +00:00
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>
20 lines
446 B
Django/Jinja
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 %}
|