Skip to content
This repository was archived by the owner on Nov 17, 2021. It is now read-only.

Add support for Google Container Registry - #225

Merged
anguslees merged 3 commits into
vmware-archive:masterfrom
burdiyan:master
Sep 2, 2018
Merged

Add support for Google Container Registry#225
anguslees merged 3 commits into
vmware-archive:masterfrom
burdiyan:master

Conversation

@burdiyan

@burdiyan burdiyan commented Aug 31, 2018

Copy link
Copy Markdown
Contributor

Original resolver implementation in kubecfg was not working with protected Google Container Registry repositories. It was failing with 401 Unauthorized response code, even though docker pull for the same image is working fine.

This PR changes the RegistryResolver implementation by using a pretty solid external package of container registry utilities: https://github.com/genuinetools/reg.

I removed the utils/resolver_test.go file as it is not relevant that much anymore since external package is used.

This issue was a real blocker for us for using kubecfg, as we rely very heavily on deployments by the exact image digest.

Add Google Container Registry support

Fix jsonnet tests

@anguslees anguslees left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I had some trivial comments, so I just made those changes directly.

Nice improvement, thanks!

Comment thread utils/resolver.go Outdated
"strings"

"github.com/genuinetools/reg/repoutils"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove this blank line between the 3rd party imports

Oops, turns out it _is_ still used.
@anguslees

Copy link
Copy Markdown
Contributor

Urgh, every time I use the github editor to make "obvious" changes without being able to test them first, I make things worse :/

@anguslees
anguslees merged commit 8e89a61 into vmware-archive:master Sep 2, 2018
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