Skip to content

[v3 backport] Oras v2 v3 backport with http fallback - #30296

Merged
gjenkins8 merged 3 commits into
helm:dev-v3from
TerryHowe:orasv2-v3-backport
Mar 14, 2025
Merged

gjenkins8 merged 3 commits into
helm:dev-v3from
TerryHowe:orasv2-v3-backport

Conversation

@TerryHowe

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Update oras v2 which removes many unwanted dependencies.

Special notes for your reviewer:

This PR has two commits. The first is the commit from the helm v4 PR and the second is some code to automatically fallback to http which was added to not break current v3 behavior.

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/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Feb 7, 2025

@godhanipayal godhanipayal left a comment

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.

/ lgtm

@connyay

connyay commented Feb 12, 2025

Copy link
Copy Markdown

We (@tanium) are hitting some pains where our internal registry is returning 500s randomly when fetching oauth tokens and this PR would dramatically improve our lives with retry.NewTransport(transport). Would love to see this land 👍

Thank you @TerryHowe 👏

@sabre1041

Copy link
Copy Markdown
Contributor

@TerryHowe would you be able to resolve the conflicts?

@TerryHowe

Copy link
Copy Markdown
Contributor Author

Conflicts resolved

@dcduncan

dcduncan commented Mar 8, 2025

Copy link
Copy Markdown

Hello, I wanted to see if this PR is targeting any of the upcoming milestones? I don't see it listed in 3.17.2 or 3.18

Thank you @TerryHowe and sorry for the ping

@sabre1041 sabre1041 left a comment

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.

LGTM

@gjenkins8 gjenkins8 changed the title Oras v2 v3 backport with http fallback [v3 backport] Oras v2 v3 backport with http fallback Mar 13, 2025
Comment thread pkg/registry/fallback.go Resolved
@TerryHowe

Copy link
Copy Markdown
Contributor Author

Closes: #30667

@scottrigby scottrigby left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for putting in the work for this backport. Important for v3 maintainability. Looks great!

@TerryHowe
TerryHowe force-pushed the orasv2-v3-backport branch from 6c796d6 to db2c3ee Compare March 14, 2025 12:28
@TerryHowe

Copy link
Copy Markdown
Contributor Author

conflicts resolved again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants