How a Lifecycle Policy Works

How a Lifecycle Policy Works A workflow diagram generated by Archify. 01 / Rule evaluation 02 / Apply rule · decide 03 / Expiration Image Pushed · stored in repository · Rule evaluation Image Pushed stored in repository Lifecycle Policy Evaluation · walk registered rules · Rule evaluation Lifecycle Policy Evaluation walk registered rules Rule 1 match? · SemVer tags · Rule evaluation · rulePriority 1 Rule 1 match? SemVer tags rulePriority 1 Rule 2 match? · dev / staging tags · Rule evaluation · rulePriority 2 Rule 2 match? dev / staging tags rulePriority 2 Rule N match? · tagStatus: untagged · Rule evaluation · rulePriority N Rule N match? tagStatus: untagged rulePriority N Image Retained · image kept · Rule evaluation Image Retained image kept Apply Matched Rule · first matching rule only · Apply rule · decide Apply Matched Rule first matching rule only Over retention limit? · countType · countNumber · Apply rule · decide Over retention limit? countType · countNumber Image Expired · action: expire · Expiration Image Expired action: expire match no match match no match no match exceeds within threshold Legend Image Rule evaluation (by rulePriority) Rule application · retention check Outcome