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

new config option for sync-destination #454

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

laurentiuNiculae
Copy link
Contributor

Signed-off-by: laurentiuNiculae themelopeus@gmail.com

What type of PR is this?

Which issue does this PR fix:
Issue #433

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs from IPAMD/CNI showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades. Has updating a running cluster been tested?:

Does this change require updates to the CNI daemonset config files to work?:

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@laurentiuNiculae laurentiuNiculae force-pushed the changeUriSync branch 7 times, most recently from 52cb1c7 to f8c6479 Compare March 11, 2022 16:49
@codecov
Copy link

codecov bot commented Mar 11, 2022

Codecov Report

Merging #454 (da1e2af) into main (6d04ab3) will increase coverage by 0.16%.
The diff coverage is 97.53%.

@@            Coverage Diff             @@
##             main     #454      +/-   ##
==========================================
+ Coverage   83.94%   84.10%   +0.16%     
==========================================
  Files          50       50              
  Lines       10290    10375      +85     
==========================================
+ Hits         8638     8726      +88     
+ Misses       1293     1290       -3     
  Partials      359      359              
Impacted Files Coverage Δ
pkg/extensions/sync/utils.go 82.91% <96.39%> (+3.27%) ⬆️
pkg/extensions/sync/on_demand.go 88.20% <100.00%> (+0.34%) ⬆️
pkg/extensions/sync/sync.go 91.23% <100.00%> (+0.27%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@laurentiuNiculae laurentiuNiculae marked this pull request as ready for review March 11, 2022 17:22
pkg/extensions/sync/on_demand.go Outdated Show resolved Hide resolved
pkg/extensions/sync/utils.go Outdated Show resolved Hide resolved
@laurentiuNiculae laurentiuNiculae force-pushed the changeUriSync branch 8 times, most recently from f0f9a51 to 7513dad Compare March 16, 2022 09:42
@peusebiu
Copy link
Collaborator

peusebiu commented Mar 16, 2022

given a sync content config:

Content{
    Prefix: "zot-fold/**",
    Destination: "/", 
    StripPrefix: true
}

let's say that this prefix will match an upstream image named: zot-fold/zot-fold2/alpine
with the current implementation we will store it locally as: zot-fold2/alpine

Is this ok, or StripPrefix should also strip zot-fold2? and the result should be alpine? @andaaron @rchincha

Otherwise LGTM

peusebiu
peusebiu previously approved these changes Mar 16, 2022
rchincha
rchincha previously approved these changes Mar 18, 2022
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

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

lgtm

@rchincha
Copy link
Contributor

given a sync content config:

Content{
    Prefix: "zot-fold/**",
    Destination: "/", 
    StripPrefix: true
}

let's say that this prefix will match an upstream image named: zot-fold/zot-fold2/alpine with the current implementation we will store it locally as: zot-fold2/alpine

Is this ok, or StripPrefix should also strip zot-fold2? and the result should be alpine? @andaaron @rchincha

Otherwise LGTM

This is ok

@rchincha
Copy link
Contributor

Merging is blocked
The base branch requires all commits to be signed.

@rchincha rchincha dismissed stale reviews from peusebiu and themself via 46aa1cc March 18, 2022 18:24
Signed-off-by: laurentiuNiculae <themelopeus@gmail.com>
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

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

lgtm

@rchincha rchincha merged commit 0d148e1 into project-zot:main Mar 21, 2022
@laurentiuNiculae laurentiuNiculae deleted the changeUriSync branch March 30, 2022 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants