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

Make swagger download automatically select architecture #19780

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AaronDewes
Copy link

@AaronDewes AaronDewes commented Jan 1, 2024

Comprehensive Summary of your change

This does not work for all architectures, but at least amd64 and arm64. I could also add a switch statement, but ARM64 seems to be the most important arch to implement right now (#3505).

Issue being fixed

Helps towards #3505

Please indicate you've done the following:

  • Well Written Title and Summary of the PR
  • Label the PR as needed. "release-note/ignore-for-release, release-note/new-feature, release-note/update, release-note/enhancement, release-note/community, release-note/breaking-change, release-note/docs, release-note/infra, release-note/deprecation"
  • Accepted the DCO. Commits without the DCO will delay acceptance.
  • Made sure tests are passing and test coverage is added if needed.
  • Considered the docs impact and opened a new docs issue or PR with docs changes if needed in website repository.

This does not work for all architectures, but at least amd64 and arm64. I could also add a switch statement, but ARM64 seems to be the most important arch to implement right now (goharbor#3505).

Signed-off-by: Aaron Dewes <aaron.dewes@protonmail.com>
@AaronDewes AaronDewes requested a review from a team as a code owner January 1, 2024 21:30
@zyyw
Copy link
Contributor

zyyw commented Jan 2, 2024

this command dpkg --print-architecture doesn't work in MacOSX

@zyyw
Copy link
Contributor

zyyw commented Jan 2, 2024

Could you please contribute in the following repo to support Harbor in ARM:

Thanks

@zyyw zyyw closed this Jan 2, 2024
@AaronDewes
Copy link
Author

this command dpkg --print-architecture doesn't work in MacOSX

The container is always a Linux container, isn't it?

And https://github.com/goharbor/harbor-arm seems unmaintained.

In my opinion, a second repo for arm is unnecessary considering how small the changes for arm64 support would need to be (This PR + another 10 line patch).

So please reopen or reconsider this PR.

@Vad1mo Vad1mo reopened this Jan 12, 2024
Copy link

codecov bot commented Jan 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.56%. Comparing base (6d854a5) to head (3996a41).
Report is 41 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main   #19780       +/-   ##
===========================================
+ Coverage   45.30%   67.56%   +22.26%     
===========================================
  Files         244      991      +747     
  Lines       13333   109172    +95839     
  Branches     2720     2720               
===========================================
+ Hits         6040    73763    +67723     
- Misses       6993    31444    +24451     
- Partials      300     3965     +3665     
Flag Coverage Δ
unittests 67.56% <ø> (+22.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 750 files with indirect coverage changes

@Vad1mo Vad1mo added the release-note/enhancement Label to mark PR to be added under release notes as enhancement label Jan 17, 2024
Copy link

This PR is being marked stale due to a period of inactivty. If this PR is still relevant, please comment or remove the stale label. Otherwise, this PR will close in 30 days.

@github-actions github-actions bot added Stale and removed Stale labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/enhancement Label to mark PR to be added under release notes as enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants