-
Notifications
You must be signed in to change notification settings - Fork 395
Add support for Google Artifact Registry #1936
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 support for Google Artifact Registry #1936
Conversation
for more information, see https://pre-commit.ci
This pull requests allows for the GCP's Google Metadata Server to be used as a
|
@consideRatio could you take a look please? this change is the only way I can get binderhub to work with artifact registry |
@rgaiacs could you take a look please? |
@paololazzari Sorry I am too low on time to help at the moment =/ |
I never used Google Compute Engine. I cannot help. Sorry. |
Is there anyone who can help? it's a very small change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay in reviewing. Based on your comments in #1934 this seems reasonable. However rather than adding a conditional here I think it'd be cleaner to create a subclass, especially if we need to add more conditionals for other registries in future.
e.g.
class GoogleArtifactRegistry(DockerRegistry):
# Please add some comments about where the URL comes from etc, e.g. link to the Google Cloud documentation
@default("token_url")
def _default_token_url(self):
....
async def _get_token(self, client, token_url, service, scope):
....
This also makes it easier to use- you can just specify the registry class instead of having to set the token_url since that'll be embedded in the class.
@manics Thanks for the feedback, I've made those changes. |
Thanks, and once again sorry for the delay. |
jupyterhub/binderhub#1936 Merge pull request #1936 from paololazzari/1934-gcp-artifact-registry
Fixes #1934