Skip to content

Constructors that take a HttpClient do not work with Watch behaviors #547

Closed
@akrock

Description

@akrock

In researching potential workarounds for #533 I was attempting to use the constructors where I could supply my own HttpClient.

These constructors appear to be non functional with the Watch behaviors and will hang and then eventually hit a timeout after 100 seconds. This appears to be due to some of the specialized logic that gets evaluated when the Kubernetes client constructs it's own HttpClient.

private void CreateHttpClient(DelegatingHandler[] handlers)

To meet what I would expect as a consumer of the library, one of the following should happen:

  1. Constructors that are not fully compatible with all functionality of the library would not be externally available.
  2. Any HttpClient with any configuration passed to the library is able to be used. This assumes that either the code is refactored to not require special changes to the HttpClient or it applies the needed changes in a way that is safe to all HttpClients.
  3. Tools that can be used externally from the library to properly prepare a HttpClient for use with the library are provided, and the constructors that consume a HttpClient validate that the HttpClient is "prepared" for use with the library, and all of this is heavily documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions