Skip to content

chore: Make retryingRoundTripper type public#13383

Merged
mattfarina merged 1 commit intohelm:mainfrom
luisdavim:retryingrt
Oct 9, 2024
Merged

chore: Make retryingRoundTripper type public#13383
mattfarina merged 1 commit intohelm:mainfrom
luisdavim:retryingrt

Conversation

@luisdavim
Copy link
Copy Markdown
Contributor

@luisdavim luisdavim commented Oct 8, 2024

Make retryingRoundTripper type public to allow it being used in other projects

closes #13052

What this PR does / why we need it:

Some projects use helm as a library but need to create the client outside, making this object public allows using the same functionality without having to maintain a copy.

Special notes for your reviewer:

none.

If applicable:

  • this PR contains user facing changes (the docs needed label should be applied if so)
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 8, 2024
@luisdavim
Copy link
Copy Markdown
Contributor Author

luisdavim commented Oct 8, 2024

@luisdavim
Copy link
Copy Markdown
Contributor Author

I can also move the RetryingRoundTripper to its own package if that's preferable when making it public.

)

type retryingRoundTripper struct {
type RetryingRoundTripper struct {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The better place for this would probably be pkg/kube, as this contains other Kubernetes client related things.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure, I can move it. My initial approach was to make the bare minimum changes....

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated, thanks for having a look.

Make retryingRoundTripper type public to allow being used in other
projects

fixes: helm#13052
Signed-off-by: Luis Davim <luis.davim@gmail.com>
@pull-request-size pull-request-size bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 9, 2024
@luisdavim luisdavim requested a review from hiddeco October 9, 2024 07:17
Copy link
Copy Markdown
Member

@robertsirc robertsirc left a comment

Choose a reason for hiding this comment

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

I pulled this down, ran my test against it and this didn't break anything.

@robertsirc robertsirc added the Has One Approval This PR has one approval. It still needs a second approval to be merged. label Oct 9, 2024
@mattfarina mattfarina added this to the 3.17.0 milestone Oct 9, 2024
@mattfarina mattfarina merged commit 5af4707 into helm:main Oct 9, 2024
@robertsirc robertsirc removed the Has One Approval This PR has one approval. It still needs a second approval to be merged. label Oct 9, 2024
@luisdavim luisdavim deleted the retryingrt branch October 9, 2024 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make retryingRoundTripper type public

4 participants