feat: add flag to skip deleting obsolete referrers index#957
Conversation
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## main #957 +/- ##
==========================================
+ Coverage 81.08% 81.39% +0.30%
==========================================
Files 53 54 +1
Lines 2792 2816 +24
==========================================
+ Hits 2264 2292 +28
+ Misses 358 355 -3
+ Partials 170 169 -1
|
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
shizhMSFT
left a comment
There was a problem hiding this comment.
What about the manifest delete path?
Referrers index deletion happens after manifest deletion right? If the registry already supports deletion and the token used covers manifest deletion, why would referrers index fail? Also why would user want to skip referrers index deletion when manifest deletion is successful? |
LoL. Makes sense. |
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…s-project#957)" This reverts commit ba60b99. Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…s-project#957)" This reverts commit ba60b99. Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…t#957) Signed-off-by: Billy Zha <jinzha1@microsoft.com> Co-authored-by: Terry Howe <tlhowe@amazon.com>
…s-project#957)" This reverts commit ba60b99. Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…as-project#957)" This reverts commit ba60b99. Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…as-project#957)" This reverts commit ba60b99. Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…as-project#957)" This reverts commit ba60b99. Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…)" (#1046) Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…as-project#957)" (oras-project#1046) Signed-off-by: Billy Zha <jinzha1@microsoft.com>
…as-project#957)" (oras-project#1046) Signed-off-by: Billy Zha <jinzha1@microsoft.com>
What this PR does / why we need it:
This PR adds a flag to
oras attach,oras cpandoras manifest push. The flag can be used to specify whether to clean up old referrers index when referrers API is not available.There is not a breaking change and by default, mentioned commands will still do referrers cleanup.
Depends on merging of #967.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #954, fixes #952, fixes #915
Please check the following list: