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

commonsteps: StepDownload timeout override #272

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

mogrogan
Copy link
Contributor

Should now be overridable via the environment variable PACKER_GETTER_READ_TIMEOUT

@mogrogan mogrogan requested a review from a team as a code owner December 18, 2024 22:11
@mogrogan mogrogan force-pushed the stepdownload_timeout_override branch 4 times, most recently from df4c3ee to a695a51 Compare December 23, 2024 21:07
Copy link
Contributor

@lbajolet-hashicorp lbajolet-hashicorp left a comment

Choose a reason for hiding this comment

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

Hey @mogrogan,

Overall LGTM, thanks. I left a few comments on the code, which are more nitpicks/docs changes than anything else. Feel free to let me know how you want to proceed with those, and we might be able to merge this today.

multistep/commonsteps/step_download.go Show resolved Hide resolved

func prepareGetterClient() {
getterReadTimeout := defaultGetterReadTimeout
if env, exists := os.LookupEnv("PACKER_GETTER_READ_TIMEOUT"); exists {
Copy link
Contributor

Choose a reason for hiding this comment

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

Note to myself: we'll need to add that new envvar to the docs somewhere

multistep/commonsteps/step_download_test.go Show resolved Hide resolved
Should now be overridable via the environment variable
PACKER_GETTER_READ_TIMEOUT
@lbajolet-hashicorp lbajolet-hashicorp merged commit 9657ace into main Jan 20, 2025
9 checks passed
@lbajolet-hashicorp lbajolet-hashicorp deleted the stepdownload_timeout_override branch January 20, 2025 22:13
@lbajolet-hashicorp lbajolet-hashicorp added the enhancement New feature or request label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants