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

feat:二进制制品仓库自动清理策略支持到目录级别 #2861

Open
fayewong-v5 opened this issue Dec 16, 2024 · 0 comments
Open
Labels
backlog enhancement New feature or request

Comments

@fayewong-v5
Copy link

fayewong-v5 commented Dec 16, 2024

仓库级别的清理策略

  • 新建仓库时,默认创建仓库级别的清理策略
  • 流水线仓库:
    • 默认清理 90 天无任何访问(创建/更新/查看/下载)的文件
    • 仓库管理员可调整时间阈值,但不能低于 30 天
  • 自定义仓库:
    • 默认永久保留
    • 仓库管理员可以调整为条件清理,时间阈值不能低于 30 天
  • 其他自建的二进制制品仓库:
    • 默认永久保留
    • 仓库管理员可以调整为条件清理,时间阈值不能低于 30 天
  • 1个仓库有且仅有1条仓库级别的策略,可以删除仓库级别的策略

目录级别的清理策略

当需要精细化管理,按目录定制清理策略时:

  • 仓库下,可以针对目录配置清理策略:
  • 流水线仓库:仅支持配置到流水线级别,即 1级目录
  • 其他仓库:目录层级不超过 3 级
  • 1个目录有且仅有1条策略
  • 单目录的时间阈值:最小 7 天

多策略冲突解决

  • 就近原则
  • 如仓库上配置了策略 A,一级目录配置了策略B,三级目录配置了策略 C,则 三级目录下的所有子孙节点,清理策略以 C 为准

UI交互

https://codesign.woa.com/s/500272295671966

存量仓库策略迁移

策略待补充

@fayewong-v5 fayewong-v5 added enhancement New feature or request backlog labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant