-
Notifications
You must be signed in to change notification settings - Fork 442
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 service connector support for Google Artifact Registry #2771
Add service connector support for Google Artifact Registry #2771
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
# domain format with the project ID as the first part of the URL path | ||
# and the registry name as the second part of the URL path | ||
if match := re.match( | ||
r"^(https://)?(([a-z0-9-]+)-docker.pkg.dev/([a-z0-9-]+)/([a-z0-9-.]+))(/.+)*$", |
Check failure
Code scanning / CodeQL
Inefficient regular expression
# us.gcr.io, eu.gcr.io, asia.gcr.io) and the project ID is the | ||
# first part of the URL path | ||
elif match := re.match( | ||
r"^(https://)?(((us|eu|asia)\.)?gcr.io/[a-z0-9-]+)(/.+)*$", |
Check failure
Code scanning / CodeQL
Inefficient regular expression
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
|
51a0657
to
69aa33d
Compare
69aa33d
to
d1ae399
Compare
d1ae399
to
e270a90
Compare
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.
This looks great!
…oogle-artifact-registry
Describe changes
Adds support for Google Artifact Registry as a drop-in replacement for the deprecated Google Container Registry in the GCP Service Connector.
The
docker-registry
resource type has been converted from a single-instance resource type into a multi-instance resource type. A GCP Service Connector can be configured to give access to not one but many GAR (Google Artifact Registry) docker repositories in addition to the legacy GCR registries available for the same project, e.g.:Backwards Compatibility
Support for the legacy deprecated GCR registries is included in the GCP service connector. Users that already have GCP service connectors configured to access GCR registries will not be negatively impacted by this change.
Multi-type GCP Service Connector before the update:
Multi-type GCP Service Connector after the update:
Single-type GCP Service Connector before the update:
Single-type GCP Service Connector after the update:
For multi-type GCP Service Connectors, the ZenML server logs will report an error if the Google Artifact Registry permissions necessary to discover GAR registries are not yet configured for the GCP Service Connector credentials, but this does not prevent the GCP Service Connector from functioning with GCR registries, e.g.:
Users can follow the GCP guide on converting their existing GCR registries into Google Artifact Registries and follow them with the appropriate changes in their ZenML GCP Service Connectors:
artifactregistry.repositories.createOnPush
artifactregistry.repositories.downloadArtifacts
artifactregistry.repositories.get
artifactregistry.repositories.list
artifactregistry.repositories.readViaVirtualRepository
artifactregistry.repositories.uploadArtifacts
artifactregistry.locations.list
gcr.io
GCR URLs already configured in the GCP Service Connectors and in linked Container Registry stack components as long as these are redirected to GAR as covered in the transition GCR guide.Even if the GCP Service Connector credentials do not grant access to GCR registries, the GCP Service Connector will continue to report these legacy GCR registries as accessible. These will be removed in a future release.
Pre-requisites
Please ensure you have done the following:
develop
and the open PR is targetingdevelop
. If your branch wasn't based on develop read Contribution guide on rebasing branch to develop.Types of changes