Atlantis: [Feature] Plugin-Cache Clean Up

Created on 28 Jan 2020  路  7Comments  路  Source: runatlantis/atlantis

Justification

image

feature

Most helpful comment

A sane, configurable, default for deleting plugins X days/weeks/months old would be ideal for this. you could roll a cron job into the official helm chart but it would be nice if this was just an atlantis param instead

All 7 comments

Yikes! Maybe something on a long timer that runs every hour? We wouldn't want to delete plugins that have actually been used though. Maybe we could default to deleting plugins that haven't been accessed for 3 weeks?

Yeah sounds good and viable!

I'd be happy w/ deleting older versions of a given plugin, we had ~40 copies of each of two google providers and that ran us down to 0 bytes of disk space on the volume.

Also, it'd be nice if something (although it might be terraform) didn't leave incomplete versions of these files on disk (we had some that weren't executable, and I presume it's because it was downloading them and ran out of disk before they finished, and thus didn't get to the +x step).

this is also happening in our case, where we use git as the module source. It's frankly ridiculous.
A few plans in a span of an hour or two, completely make the Fargate instance (20 GBs of total space) run out of space.

@lkysow Should I create another ticket for this, as it is not solely related to plugins, but for git modules too?

@dimisjim I think the git modules is different as it is a terraform mechanism. To make it worse, the same module can be downloaded several times if used multiple times in the root module (project).

What do you guys think?
I have some suggestions. I would like to help!

  1. a CronJob packed into the docker image
  2. Make it part of the Go Code
  3. A sidecar container in the helm chart

A sane, configurable, default for deleting plugins X days/weeks/months old would be ideal for this. you could roll a cron job into the official helm chart but it would be nice if this was just an atlantis param instead

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gaahrdner picture gaahrdner  路  3Comments

majormoses picture majormoses  路  3Comments

tlkamp picture tlkamp  路  5Comments

stephencoe picture stephencoe  路  5Comments

teosoft123 picture teosoft123  路  5Comments