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

Allow using a remote registry for caching #652

Closed
sambhav opened this issue Mar 29, 2021 · 2 comments
Closed

Allow using a remote registry for caching #652

sambhav opened this issue Mar 29, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@sambhav
Copy link
Contributor

sambhav commented Mar 29, 2021

As dicussed in slack at https://buildpacks.slack.com/archives/CQ10WHMT4/p1613732146033900

TL;DR -

Platforms like pack allow storing the cache layers in a remote registry. kpack should allow doing the same for clusters that don't have PVCs or for more flexibility with caching in general. This might require a spec change from spec.cacheSize to spec.cache which looks like -

Something like:

spec: 
  cache: 
    volume: 
      request: 2G
      storageClassName: some-class-name

and:

spec: 
  cache: 
    registry: 
      tag: myregistry.com/image/tag
@divoxx
Copy link

divoxx commented Mar 29, 2021

It would also be great if the two caching strategies can be used in conjunction. i.e. being able to have local builds as fast as possible, while still allowing some level of caching for multi-clusters setup, or when the cache needs to be busted.

@matthewmcnew matthewmcnew added the enhancement New feature or request label May 11, 2021
@matthewmcnew
Copy link
Collaborator

It would also be great if the two caching strategies can be used in conjunction. i.e. being able to have local builds as fast as possible, while still allowing some level of caching for multi-clusters setup, or when the cache needs to be busted.

@divoxx Interesting, idea! I think that might require a change to the underlying cloud native buildpack project to either support multiple types of cache or some cache hierarchy. Would you be interested in bringing that up in Buildpacks slack or Buildpacks working group?

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

No branches or pull requests

3 participants