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

Kaniko/add path regmaps [possible in registry maps and/or mirror] #3051

Merged

Conversation

prima101112
Copy link
Contributor

@prima101112 prima101112 commented Mar 7, 2024

Fixes #2471 , #1618 and my own #3046

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`

@prima101112
Copy link
Contributor Author

hi @aaron-prindle
just re submit the PR

including @mlec1 that review the old pr

@prima101112
Copy link
Contributor Author

also this sir @JeromeJu please review

for _, regToMapTo := range newRegURLs {

//ectract custom path if any in all registry map and clean regToMapTo to only the registry without the path
Copy link
Collaborator

@aaron-prindle aaron-prindle Mar 19, 2024

Choose a reason for hiding this comment

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

nit: typo s/ectract/extract

@aaron-prindle
Copy link
Collaborator

Thanks for the PR @prima101112! I think there's one typo in a related comment, once that's updated we can merge

@prima101112 prima101112 force-pushed the kaniko/add-path-regmaps branch from a30b4b6 to 52a2dba Compare March 21, 2024 23:14
@prima101112
Copy link
Contributor Author

thanks @aaron-prindle for the comment.

fix the typo and rebased again. kindly check

@aaron-prindle
Copy link
Collaborator

LGTM, thanks for the PR @prima101112!

@aaron-prindle aaron-prindle merged commit 9095b45 into GoogleContainerTools:main Mar 22, 2024
10 checks passed
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