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

add /path possible in registry maps and/or mirror #3048

Conversation

prima101112
Copy link
Contributor

@prima101112 prima101112 commented Mar 6, 2024

Fixes #2471 and #1618 and it should not againts

Description

add the path when we want --registry-map #1618 and #2471
with path in the mirror.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • [] Adds integration tests if needed.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Examples of user facing changes:
- kaniko possibility add path when want to maps `docker.io=harbor.provate.io/theproject`

// this fix automatically add library or the custom path on registry map.
func normalizeReference(ref name.Reference, image string, custompath string) (name.Reference, error) {
if custompath == "" {
custompath = "libary"
Copy link

Choose a reason for hiding this comment

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

Sorry, I am not a maintainer, but I noticed a typo here: a r is missing in library

Copy link
Contributor Author

@prima101112 prima101112 Mar 6, 2024

Choose a reason for hiding this comment

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

ahh yeah thankyou, fix in the last commit including fix unit test

@aaron-prindle
Copy link
Collaborator

aaron-prindle commented Mar 6, 2024

Thanks for the PR here @prima101112 . Can you rebase the PR here from HEAD and re-submit , recently a CI/CD fix was made for test error seen

@prima101112 prima101112 closed this Mar 7, 2024
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.

Issue with --registry-mirror Path Support in Kaniko and Harbor Registry Proxy
3 participants