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

Add HTTP request timeout option to KubeClientSettings #2383

Merged
merged 1 commit into from
May 11, 2023

Conversation

lblackstone
Copy link
Member

@lblackstone lblackstone commented May 10, 2023

Proposed changes

The HTTP client used to communicate with the Kubernetes server has a default timeout of 32 seconds. In some cases, this timeout is too low, and causes failures during provider initialization. Add an option to override this timeout value. The timeout value can be overridden in the following ways, in order of precedence:

  1. The kubeClientSettings:timeout parameter for the Provider
  2. The PULUMI_K8S_CLIENT_TIMEOUT environment variable

Note that this is distinct from the timeouts resource option, which controls how long Pulumi will wait for a resource operation to complete.

Related issues (optional)

Fix #1839

@lblackstone lblackstone requested a review from a team May 10, 2023 16:44
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

The HTTP client used to communicate with the Kubernetes server has a default timeout of 32 seconds. In some cases, this timeout is too low, and causes failures during provider initialization. Add an option to override this timeout value. The timeout value can be overridden in the following ways, in order of precedence:

1. The `kubeClientSettings:timeout` parameter for the Provider
2. The PULUMI_K8S_CLIENT_TIMEOUT environment variable

Note that this is distinct from the timeouts resource option, which controls how long Pulumi will wait for a resource operation to complete.
@lblackstone lblackstone changed the title Add timeout option to KubeClientSettings Add HTTP request timeout option to KubeClientSettings May 10, 2023
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

1 similar comment
@github-actions
Copy link

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@lblackstone lblackstone merged commit afdb5e7 into master May 11, 2023
17 checks passed
@lblackstone lblackstone deleted the lblackstone/client-timeout branch May 11, 2023 20:03
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.

Too frequent Client.Timeout
2 participants