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

better raw requests #260

Merged
merged 3 commits into from
Nov 25, 2023
Merged

better raw requests #260

merged 3 commits into from
Nov 25, 2023

Conversation

yurique
Copy link
Collaborator

@yurique yurique commented Nov 24, 2023

A followup to #246 - the solution there was incomplete (and, admittedly, not very well thought through).

For example, if the underlying http client happens to be configured with an SSL context - the user will be stuck, since we only prepare the request for them, but they still don't have access to the http client to run it with.

Here, I introduced a new "module" to the kubernetes client: RawApi (client.raw) which exposes two methods:

  • runRequest
  • connectWS

Those methods will prepare and execute the requests, but leave the handling of the responses to the user's discretion.

@yurique yurique requested a review from joan38 November 24, 2023 14:38
@joan38
Copy link
Owner

joan38 commented Nov 24, 2023

Is this similar to the customRequest function we recently merged in 6c8d543 ?

@joan38
Copy link
Owner

joan38 commented Nov 24, 2023

Ah nevermind you are replacing it with that. Cool I like this approche much more.

@joan38
Copy link
Owner

joan38 commented Nov 25, 2023

@yurique We can merge this one too

@yurique yurique merged commit 17f9c35 into main Nov 25, 2023
7 checks passed
@yurique yurique deleted the feature/better-raw-requests branch November 25, 2023 00:48
@joan38
Copy link
Owner

joan38 commented Nov 25, 2023

Great I will make a release now

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.

2 participants