Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add minimum image age option #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kaisoz
Copy link

@kaisoz kaisoz commented May 7, 2020

The current implementation of DroneGC only considers images that were created more than one hour ago. This PR makes that image age time configurable via the MinImageAge option. If such option is not available, the minimum image age is remains 1 hour.

Pretty bool `envconfig:"GC_DEBUG_PRETTY"`
Images []string `envconfig:"GC_IGNORE_IMAGES"`
Containers []string `envconfig:"GC_IGNORE_CONTAINERS"`
Interval time.Duration `envconfig:"GC_INTERVAL" default:"5m"`
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks wrong formatted

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sorry, I now gofmted all my changes

@kaisoz kaisoz force-pushed the add-minimum-image-age-option branch from 5a9d8d0 to 77a0cfd Compare May 8, 2020 05:19
@Anarkis
Copy link

Anarkis commented Dec 7, 2021

@tboerger is there any possibility to see this feature merged to master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants