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

feat(sync): preserve subpath in repositories when registry is defined #2330

Closed
wants to merge 2 commits into from

Conversation

TechIsCool
Copy link

This PR enhances the Skopeo sync command by ensuring that image paths are preserved. This adds functionality while also addressing the issue where paths were previously flattened with path.Base(destSuffix).

  • Add RegistryName field to repoDescriptor for better registry handling.
  • Introduce getSubPath function to cleanly handle subpath extraction.
  • Update functions imagesToCopyFromRegistry and filterSourceReferences to include RegistryName.
  • Modify syncOptions.run to use getSubPath.
  • Add unit tests for getSubPath.

Resolves

Copy link

Ephemeral COPR build failed. @containers/packit-build please check.

  - Add `RegistryName` field to `repoDescriptor` for better registry handling.
  - Introduce `getSubPath` function to cleanly handle subpath extraction.
  - Update functions `imagesToCopyFromRegistry` and `filterSourceReferences` to include `RegistryName`.
  - Modify `syncOptions.run` to use `getSubPath`.
  - Add unit tests for `getSubPath`.

Resolves
  - containers#1992

Signed-off-by: David Beck <[email protected]>
Copy link
Contributor

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

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

Thanks for the PR.

We can’t just change what existing commands do, and break many existing scripts.

(And, as detailed throughout the GitHub issues, I’m uninterested in adding more mapping features. We should just let the user specify (source repo + destination repo) pairs; unfortunately that requires quite a noticeable redesign of the YAML format.)

Copy link

A friendly reminder that this PR had no activity for 30 days.

@github-actions github-actions bot removed the stale-pr label Jul 16, 2024
Copy link

A friendly reminder that this PR had no activity for 30 days.

@mtrmac mtrmac closed this Aug 15, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants