Skip to content

Commit

Permalink
google/gar: increase keep age to 90 days
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Apr 3, 2024
1 parent 1350036 commit 28c79ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/reconcilers/google/gar/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ func serviceAccountNameAndAccountID(teamSlug, projectID string) (serviceAccountN
return
}

// Remove all images that are more than 60 days old,
// Remove all images that are more than 90 days old,
// but keep the last 50 "versions" regardless of age.
//
// Documentation: https://cloud.google.com/artifact-registry/docs/repositories/cleanup-policy
Expand All @@ -371,7 +371,7 @@ func DefaultCleanupPolicies() map[string]*artifactregistrypb.CleanupPolicy {
// thus, an image consists of 5 artifacts at the worst (for images pushed through the nais/docker-build-push action)
var keepCount int32 = 50

keepUntilAge := time.Hour * 24 * 60
keepUntilAge := time.Hour * 24 * 90
anyTagState := artifactregistrypb.CleanupPolicyCondition_ANY

return map[string]*artifactregistrypb.CleanupPolicy{
Expand Down

0 comments on commit 28c79ae

Please sign in to comment.