Optional
descriptionDescribes the purpose of a rule within a lifecycle policy.
Optional
maximumThe maximum age limit (in days) for your images. Either [maximumNumberOfImages] or [maximumAgeLimit] must be provided.
Optional
maximumThe maximum number of images that you want to retain in your repository. Either [maximumNumberOfImages] or [maximumAgeLimit] must be provided.
Determines whether the lifecycle policy rule that you are adding specifies a tag for an
image. If you specify any
, then all images have the rule applied to them. If you specify
untagged
then the rule will only apply to untagged images. Otherwise, you can specify a
tagPrefixList
value.
Generated using TypeDoc
The following behaviors hold for these rules:
An image is expired by exactly one or zero rules.
An image that matches the tagging requirements of a higher priority rule cannot be expired by a rule with a lower priority.
Rules can never mark images that are marked by higher priority rules, but can still identify them as if they haven't been expired.
The set of rules must contain a unique set of tag prefixes.
Only one rule is allowed to select
untagged
images.Expiration is always ordered by pushed_at_time, and always expires older images before newer ones.
When using the
tagPrefixList
, an image is successfully matched if all of the tags in thetagPrefixList
value are matched against any of the image's tags.With
maximumNumberOfImages
, images are sorted from youngest to oldest based on pushed_at_time and then all images greater than the specified count are expired.With
maximumAgeLimit
, all images whose pushed_at_time is older than the specified number of days based on countNumber are expired.