Skip to content

Commit

Permalink
Pass proxy configuration through to Hub pod
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Lucidi <slucidi@redhat.com>
  • Loading branch information
mansam committed Oct 4, 2023
1 parent 4ba0537 commit 03b7549
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/tackle/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ feature_pathfinder: true
# Environment
openshift_cluster: false
image_pull_policy: "Always"
http_proxy: "{{ lookup( 'env', 'HTTP_PROXY') }}"

Check failure on line 17 in roles/tackle/defaults/main.yml

View workflow job for this annotation

GitHub Actions / build

jinja[spacing]

Jinja2 spacing could be improved: {{ lookup( 'env', 'HTTP_PROXY') }} -> {{ lookup('env', 'HTTP_PROXY') }}
https_proxy: "{{ lookup( 'env', 'HTTPS_PROXY') }}"

Check failure on line 18 in roles/tackle/defaults/main.yml

View workflow job for this annotation

GitHub Actions / build

jinja[spacing]

Jinja2 spacing could be improved: {{ lookup( 'env', 'HTTPS_PROXY') }} -> {{ lookup('env', 'HTTPS_PROXY') }}
no_proxy: "{{ lookup( 'env', 'NO_PROXY') }}"

Check failure on line 19 in roles/tackle/defaults/main.yml

View workflow job for this annotation

GitHub Actions / build

jinja[spacing]

Jinja2 spacing could be improved: {{ lookup( 'env', 'NO_PROXY') }} -> {{ lookup('env', 'NO_PROXY') }}

# Components
hub_image_fqin: "{{ lookup('env', 'RELATED_IMAGE_TACKLE_HUB') }}"
Expand Down
12 changes: 12 additions & 0 deletions roles/tackle/templates/deployment-hub.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,18 @@ spec:
value: "{{ cache_data_volume_claim_name }}"
- name: CACHE_PATH
value: "{{ cache_mount_path }}"
{% endif %}
{% if http_proxy|length >0 %}
- name: HTTP_PROXY
value: {{ http_proxy }}
{% endif %}
{% if https_proxy|length >0 %}
- name: HTTPS_PROXY
value: {{ https_proxy }}
{% endif %}
{% if no_proxy|length >0 %}
- name: NO_PROXY
value: {{ no_proxy }}
{% endif %}
ports:
- containerPort: {{ hub_port }}
Expand Down

0 comments on commit 03b7549

Please sign in to comment.