Skip to content

Commit

Permalink
Keep specified amount of tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Rüegg committed Dec 19, 2019
1 parent 4eb1e6b commit 9cecc2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/imagestream.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ func (o *ImageStreamCleanupOptions) cleanupImageStreamTags(cmd *cobra.Command, a

inactiveTags := cleanup.GetInactiveTags(&activeImageStreamTags, &matchingTags)

inactiveTags = cleanup.LimitTags(&inactiveTags, o.Keep)

log.Printf("Tags for deletion: %s", inactiveTags)

if o.Force {
Expand Down

0 comments on commit 9cecc2b

Please sign in to comment.