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 multi-level repos for Artifact Registry #5053

Merged
merged 3 commits into from Nov 26, 2020
Merged

Support multi-level repos for Artifact Registry #5053

merged 3 commits into from Nov 26, 2020

Conversation

halvards
Copy link
Collaborator

@halvards halvards commented Nov 23, 2020

Description
This change adds Artifact Registry (AR) as another special case for image name rewriting, similar to Container Registry (GCR).

Both GCR and AR support arbitrarily deep image repo names. This change looks for gcr.io or -docker.pkg.dev in the registry domain.

Related: #4878

User facing changes
Updates to documentation on image name rewriting.

**Description**
This change adds Artifact Registry (AR) as another special case for
[image name rewriting](https://skaffold.dev/docs/environment/image-registries/),
similar to Container Registry (GCR).

Both GCR and AR support arbitrarily deep image repo names. This change
looks for `gcr.io` or `-docker.pkg.dev` in the registry domain.

**Related**: #4878

**User facing changes**
Updates to documentation on image name rewriting.
@halvards halvards requested a review from a team as a code owner November 23, 2020 01:25
@google-cla google-cla bot added the cla: yes label Nov 23, 2020
@codecov
Copy link

codecov bot commented Nov 23, 2020

Codecov Report

Merging #5053 (7d63cf5) into master (487812c) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5053      +/-   ##
==========================================
+ Coverage   72.26%   72.28%   +0.01%     
==========================================
  Files         368      368              
  Lines       12912    12927      +15     
==========================================
+ Hits         9331     9344      +13     
- Misses       2890     2891       +1     
- Partials      691      692       +1     
Impacted Files Coverage Δ
pkg/skaffold/docker/default_repo.go 100.00% <100.00%> (ø)
pkg/skaffold/docker/image.go 79.53% <0.00%> (+0.19%) ⬆️
pkg/skaffold/initializer/init.go 58.92% <0.00%> (+7.76%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 487812c...7d63cf5. Read the comment docs.

Copy link
Member

@briandealwis briandealwis left a comment

Choose a reason for hiding this comment

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

Thanks! One little change.

pkg/skaffold/docker/default_repo.go Outdated Show resolved Hide resolved
halvards and others added 2 commits November 25, 2020 11:41
Use regex to match Google Cloud project ID.

Co-authored-by: Brian de Alwis <bsd@acm.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants