helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

Add optional persistent volume for cacheDir

Open cykl opened this issue 4 years ago • 1 comments

My understanding is that renovatebot can leverage some cache to speed up execution and make fewer requests to external service but helm charts has no support for a persistent volume that would allow to persist this cache across execution.

I should be able to create the PV outside of the chart and then using extraVolume(Mount)?s, but this kind of workflow is always clunky. It would be great being able to declare a persistent volume as something like as follow and have it automatically mounted.

  persistentVolume:
    enabled: true
    accessModes:
      - ReadWriteOnce
    size: xxGi
    storageClass: "xxx"

Perhaps baseDir / cacheDir could be automatically set, but it seems perfectly acceptable having to make such configuration.

cykl avatar Nov 03 '21 16:11 cykl

Most effective will be this paths: renovate/cache/renovate/repository/**/*.json

viceice avatar Nov 03 '21 19:11 viceice

this could also be useful for renovates persistRepoData option

benedikt-bartscher avatar Jan 07 '23 15:01 benedikt-bartscher

Most effective will be this paths: renovate/cache/renovate/repository/**/*.json

Could you tell me the absolute path?

Edit: found it; /tmp/renovate/cache

kvanzuijlen avatar Jan 15 '23 13:01 kvanzuijlen