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

Fix Export adapter #45

Open
wants to merge 6 commits into
base: artifact-list-export-adapter
Choose a base branch
from

Conversation

bupd
Copy link

@bupd bupd commented Oct 21, 2024

Thank you for contributing to Harbor!

Comprehensive Summary of your change

  • Fix Repository Name in state artifact
  • Send Artifact list to ground control.

Issue being fixed

Fixes #(issue)

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.

@bupd bupd marked this pull request as ready for review October 21, 2024 08:54
@bupd bupd changed the title Export adapter Fix Export adapter Oct 21, 2024
Copy link

sonarcloud bot commented Oct 21, 2024

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Copy link

Choose a reason for hiding this comment

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

stage.go should not change, it has an impact on other adapters, preventing them from working.

log.Debugf("assembling dest resources...")

// Check condition to determine whether to assemble list or destination resources
if policy.DestRegistry.Type == "artifact-list-export" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see some debug print statements left in the code. But the most important thing is that such PR won't be accepted by the community of Harbor. We can't place such a switcher inside of core logic.

@Mehul-Kumar-27
Copy link

Mehul-Kumar-27 commented Oct 25, 2024

There is some issue at the replication at https://registry1.bupd.xyz/., the state file does not appears at the given project after replication.

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.

5 participants