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

Support for private registries in the cache warmer #941

Conversation

stijndehaes
Copy link
Contributor

Closes #503

Signed-off-by: Stijn De Haes stijndehaes@gmail.com

Description

Adds support for private registries to the cache warmer

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

Describe any changes here so maintainer can include it in the release notes, or delete this block.

Added support for private registries to the cache warmer.

@googlebot googlebot added the cla: yes CLA signed by all commit authors label Jan 1, 2020
@stijndehaes stijndehaes force-pushed the feature/cache-warmer-private-reg-support branch from bec0f47 to 0ea94e1 Compare January 1, 2020 13:45
@stijndehaes
Copy link
Contributor Author

stijndehaes commented Jan 6, 2020

Not sure on how to best write tests for this, if anyone could give me some pointers that would be great :)

I did test it using aws ECR and that worked fine.

@cvgw
Copy link
Contributor

cvgw commented Jan 11, 2020

@stijndehaes with some of the recent changes to master there are some conflicts in pkg/cache/warm.go that need to be resolved with your new code.

Specifically, the call to remote.Image is now done inside of the method Warm and remote.Image is passed as an argument.

One possible solution would be to add a new field on the struct Warmer; something like RemoteOptions.

Another option could be to wrap remote.Image in an anonymous function which will pass ropts.

I'm happy to help out.

@tejal29
Copy link
Member

tejal29 commented Jan 15, 2020

@stijndehaes would love to get this in! Let us know how we can help.

@stijndehaes
Copy link
Contributor Author

@tejal29 @cvgw I will try to fix the conflicts this week! Thank you for the reminder :)

@stijndehaes stijndehaes force-pushed the feature/cache-warmer-private-reg-support branch from 0ea94e1 to fef6c57 Compare January 15, 2020 14:11
Closes GoogleContainerTools#503

Signed-off-by: Stijn De Haes <stijndehaes@gmail.com>
@stijndehaes stijndehaes force-pushed the feature/cache-warmer-private-reg-support branch from fef6c57 to 3fa8f68 Compare January 15, 2020 14:35
@stijndehaes
Copy link
Contributor Author

Ok fixed the conflicts and retested with ECR. Everything is working :)

@tejal29
Copy link
Member

tejal29 commented Jan 17, 2020

Thanks @stijndehaes. running kokoro tests and will try to merge this in today.

@cvgw cvgw merged commit e19cc22 into GoogleContainerTools:master Jan 17, 2020
@cvgw
Copy link
Contributor

cvgw commented Jan 17, 2020

Thanks @stijndehaes 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes CLA signed by all commit authors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warmer does not work with private images
5 participants