-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tanzu Tile] Fix proxy exclusions bug #3902
Conversation
The NO_PROXY environment variable was previously not being set properly by the Tanzu Tile configuration option. This was because the input variable's name was being automatically converted from otel_proxy_no to otel_proxy_false internally, but the variable setting logic was still checking otel_proxy_no. Change name to otel_proxy_exclusions to avoid this.
@@ -1,9 +1,10 @@ | |||
<% if p('otel.proxy.http', '').length > 0 %> | |||
export HTTP_PROXY=<%= p('otel.proxy.http') %> | |||
export http_proxy=<%= p('otel.proxy.http') %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some architectures expect this in lower case (http_proxy
), so I've added it as a safe-guard here.
@@ -94,16 +94,16 @@ forms: | |||
- name: otel_proxy_http | |||
type: string | |||
label: HTTP proxy URL | |||
description: URL used as the proxy URL for HTTP requests unless overridden by otel_proxy_no | |||
description: URL used as the proxy URL for HTTP requests unless overridden by "Proxy exclusions" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in the Tanzu Tile UI, so the user wouldn't know what otel_proxy_no
is referring to. The text box is labelled Proxy exclusions
, so this makes the text box's description consistent with the UI's label.
optional: true | ||
|
||
- name: otel_proxy_no | ||
- name: otel_proxy_exclusions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Variable name underscores are converted to periods when being used in the BOSH job. (That's why the BOSH job references otel.proxy.exclusions
, but then the Tanzu Tile references otel_proxy_exclusions
)
Description:
The NO_PROXY environment variable was previously not being set properly by the Tanzu Tile configuration option. This was because the input variable's name was being automatically converted from otel_proxy_no to otel_proxy_false internally, but the variable setting logic was still checking otel_proxy_no. Change name to otel_proxy_exclusions to avoid this.
Testing:
Manually tested both the BOSH job and Tanzu Tile to ensure changes work properly.
Documentation:
Added some more