Skip to content

Proxy URL support, gzip support, tailLines parameter on log requests, and some other minor tweaks #43

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

Merged
merged 8 commits into from
Apr 14, 2025

Conversation

ewilken
Copy link
Contributor

@ewilken ewilken commented Apr 12, 2025

This is a collection of tweaks that I've been running in production on Nautik for some time. Please let me know if you'd prefer getting them upstreamed as separate PRs instead of having them all cramped into one. In case it's okay like this, this PR does the following:

  • Add client support for proxy URLs.
  • Add client support for gzipped server responses.
  • Add an optional tailLines parameter to the log request to be able to limit the number of lines requested from the server just like the upstream client does.
  • Fix a bug on RequestBuilder where a path was overwritten where it should have been appended. This became apparent with users using Rancher, where the base path already had a / in it. This change fixed it for all types of clusters, Rancher or not, but please let me know if I'm missing something here.
  • Add a doesNotExist variant to LabelSelectorRequirement, akin to the upstream "DoesNotExist" variant on selectors.
  • Add the upstream installHint, provideClusterInfo and interactiveMode fields to ExecConfig.
  • Make ExecCredential public, as we need it to roll our own exec implementation that is probably too messy to ever be upstreamed.
  • Add public initializers to Cluster and AuthInfo and make Cluster, AuthInfo, AuthProviderConfig, ExecConfig and ExecEnvVar conform to Hashable and Equatable, as we need to initialize and compare them in different places on the app. I hope this makes sense to upstream and doesn't interfere with anything you have in mind. Otherwise, please just let me know and I'll keep it downstream.

@ewilken ewilken marked this pull request as draft April 12, 2025 12:59
@ewilken ewilken marked this pull request as ready for review April 12, 2025 13:37
@iabudiab
Copy link
Member

@ewilken Hey there, thanks a lot for the PR. You don't need to split it into separate ones. But I'll nitpick a little bit 😜

Copy link
Member

@iabudiab iabudiab left a comment

Choose a reason for hiding this comment

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

well, there was not much to nitpick about :)

@iabudiab
Copy link
Member

Nice, thanks 👍
I'll merge once I'm back from work.

@iabudiab iabudiab merged commit 2633061 into swiftkube:main Apr 14, 2025
9 checks passed
@iabudiab
Copy link
Member

@ewilken Hey there, huge thanks again for the PR and all it brings 👍

Just tagged and released v0.23.0

@ewilken ewilken deleted the nautik branch April 14, 2025 19:46
@ewilken
Copy link
Contributor Author

ewilken commented Apr 14, 2025

Amazing! Thank you very much for the super quick review and release! 🙂

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