mirror of
https://github.com/ansible/awx-operator.git
synced 2026-05-07 05:42:55 +00:00
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:
@@ -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 %}
|
||||
Reference in New Issue
Block a user