Skip to content
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

KUBE-856: Support http proxy config #96

Merged
merged 3 commits into from
Feb 4, 2025
Merged

KUBE-856: Support http proxy config #96

merged 3 commits into from
Feb 4, 2025

Conversation

Tsonov
Copy link
Contributor

@Tsonov Tsonov commented Jan 31, 2025

Depends on terraform provider being released first - see castai/terraform-provider-castai#448 .

@Tsonov Tsonov requested a review from a team as a code owner January 31, 2025 08:38
@@ -1,5 +1,6 @@
locals {
configuration_id_regex_pattern = "[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}"
has_http_proxy = length(var.no_proxy) > 0 || (var.http_proxy != null && var.http_proxy != "") || (var.https_proxy != null && var.https_proxy != "")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does the module behave in case of just setting a no_proxy address, but keeping the http_proxy and https_proxy empty?
In theory setting no_proxy without a proxy should do nothing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, specifying only no_proxy would be no-op but we still pass the value downstream. Don't make sense to be fancy imo, user might have a reason to do this 🤔

@Tsonov Tsonov merged commit 96c9c57 into main Feb 4, 2025
1 check passed
@Tsonov Tsonov deleted the KUBE-856-proxyconfig branch February 4, 2025 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants