coder not respecting ENV PROXY var when creating openshift template

When executing: coder template push kubernetes -d . within the POD The env proxy var is not respected, causing the import to fail. I get: ==> ⧗ Detecting persistent resources 2024-09-09 10:34:31.747Z Error: Failed to query available provider packages 2024-09-09 10:34:31.747Z Could not retrieve the list of available versions for provider coder/coder: 2024-09-09 10:34:31.747Z could not connect to registry.terraform.io: failed to request discovery Is there any option to specify outbound proxy ?
5 Replies
Codercord
Codercord3mo ago
<#1282651298889465948>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Phorcys
Phorcys3mo ago
hey @ariedebeuker, could you try setting HTTPS_PROXY?
ariedebeuker
ariedebeukerOP3mo ago
Thanks, i first did an export of the variables in the POD (export HTTPS_PROXY=), that was working for commands like curl but not for the coder binary. But i just changed this and defined the HTTPS_PROXY var in the values.yaml and updated the helm deployment. That seems to work now
Phorcys
Phorcys3mo ago
yeah so the Coder daemon doesn't really send requests, in this case the HTTPS_PROXY env variable is picked up by Terraform if you set up any external provisioners, remember to also set this
Codercord
Codercord2mo ago
@Phorcys closed the thread.
Want results from more Discord servers?
Add your server