You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am confused by the documentation regarding the retention policy creation. The documentation seems to indicate that I can "keep most recent N tags" without having to specify whether the artifact was pushed or pulled.
"Example 3...Rule 2: Retain a maximum number of 10 images in each repository"
However, also in the documentation, the only options I am provided for the rule are as follows:
"retain the most recently pushed # artifacts"
"retain the most recently pulled # artifacts"
"retain the artifacts pushed within the last # days"
"retain the artifacts pulled within the last # days"
"retain always"
This mirrors what I'm seeing in the web client drop-down field. My intention is to limit the artifact count for any given repository to 5 maximum, regardless of whether it was pushed or pulled. Currently, I created two rules (one for push and one for pull) that both have a hard limit at 5, but that can create a situation where 10 artifacts are persisted. My question is, are the documents wrong or am I missing something regarding being able to set a hard limit of artifacts on a repository through Retention Policy objects?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am confused by the documentation regarding the retention policy creation. The documentation seems to indicate that I can "keep most recent N tags" without having to specify whether the artifact was pushed or pulled.
"Example 3...Rule 2: Retain a maximum number of 10 images in each repository"
However, also in the documentation, the only options I am provided for the rule are as follows:
This mirrors what I'm seeing in the web client drop-down field. My intention is to limit the artifact count for any given repository to 5 maximum, regardless of whether it was pushed or pulled. Currently, I created two rules (one for push and one for pull) that both have a hard limit at 5, but that can create a situation where 10 artifacts are persisted. My question is, are the documents wrong or am I missing something regarding being able to set a hard limit of artifacts on a repository through Retention Policy objects?
Beta Was this translation helpful? Give feedback.
All reactions