Repository navigation
Description
What is the version of your ORAS CLI
1.1.0-rc.1+unreleased
What would you like to be added?
The '--skip-delete-referrers' flag in the ORAS CLI currently serves as a fallback mechanism to avoid deleting referrers until all registries fully support the referrers API. However, with the increasing adoption of the referrers API among registries, the recommendation here is to remove this flag to streamline the CLI.
Why is this needed for ORAS?
Eliminating Fallback Mechanism: As registries widely adopt the referrers API, using a fallback mechanism becomes unnecessary. Removing the flag will align the ORAS CLI with modern registry standards and encourage users to embrace the benefits of the referrers API, such as improved storage management and performance.
Non-Zero Exit Code Issue: The current behavior of the ORAS CLI, where deleting referrers using the tag schema results in a non-zero exit code, can cause problems in CI/CD pipelines. By removing the flag, we ensure a consistent zero exit code, providing clearer feedback to users and preventing false pipeline failures.
Alignment with Registry Behavior: Registries already handle tag updates by attaching new manifests without deleting old ones. Removing the '--skip-delete-referrers' flag will allow the ORAS CLI to align seamlessly with this standard registry behavior, promoting consistency and reducing potential disruptions.
Recommended Solution:
To enhance the ORAS CLI's usability and ensure it stays coordinated with modern registry practices, we propose removing the '--skip-delete-referrers' flag. This will simplify the CLI, avoid non-zero exit code issues, and align it with how registries handle tag updates. Additionally, we can update the documentation to inform users about this change during the change release.
Are you willing to submit PRs to contribute to this feature?
- Yes, I am willing to implement it.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
qweeah commentedon Aug 2, 2023
LGTM. BTW this issue actually proposes two changes:
--skip-delete-referrers--skip-delete-referrers=true, which means old referrers will not be cleaned by orasshizhMSFT commentedon Aug 2, 2023
LGTM
shizhMSFT commentedon Aug 3, 2023
After discussing with @sajayantony, this proposal is for
v1.1.0. The patch releasev1.0.1forv1.0.0remains the previous behavior.qweeah commentedon Aug 3, 2023
We agreed to exclude
--skip-delete-referrersin #1038, so originally the flag won't be added tov1.0.1, right?FeynmanZhou commentedon Aug 8, 2023
This change doesn't impact v1.0.1 release as explained in #1038.