Skip to content

Add helper to get proxy environment variables#106

Merged
corvus-ch merged 3 commits intomasterfrom
proxy_vars
May 28, 2020
Merged

Add helper to get proxy environment variables#106
corvus-ch merged 3 commits intomasterfrom
proxy_vars

Conversation

@corvus-ch
Copy link
Copy Markdown
Contributor

Some environments require the HTTP_PROXY, HTTPS_PROXYandNO_PROXYvariables being set. The helperproxyVars` sets them when needed.

Some environments require the `HTTP_PROXY, `HTTPS_PROXY` and `NO_PROXY`
variables being set. The helper `proxyVars` sets them when needed.
Copy link
Copy Markdown
Member

@simu simu left a comment

Choose a reason for hiding this comment

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

Looks reasonable. There's an argument of whether we should make proxyVars take params as an argument instead of importing kapitan.libjsonnet here, but I think this way is ok, since we don't need the component params for this function.

@corvus-ch
Copy link
Copy Markdown
Contributor Author

There's an argument of whether we should make proxyVars take params as an argument instead of importing kapitan.libjsonnet here […].

At first, I had it that way. Once I had done the n-th local params = inv.parameters and the m-th com.envVars(params), I changed my mind.

@corvus-ch corvus-ch marked this pull request as ready for review May 28, 2020 12:56
@corvus-ch corvus-ch requested a review from simu May 28, 2020 12:56
Copy link
Copy Markdown
Member

@simu simu left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread lib/commodore.libjsonnet
@corvus-ch corvus-ch merged commit 2e24517 into master May 28, 2020
@corvus-ch corvus-ch deleted the proxy_vars branch May 28, 2020 15:34
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.

3 participants