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

pack should have a pull policy of "try always" #2201

Open
1 task done
natalieparellano opened this issue Jul 3, 2024 · 1 comment
Open
1 task done

pack should have a pull policy of "try always" #2201

natalieparellano opened this issue Jul 3, 2024 · 1 comment
Labels
status/discussion-needed Issue or PR that requires in-depth discussion. type/enhancement Issue that requests a new feature or improvement.

Comments

@natalieparellano
Copy link
Member

Description

Pull policy governs the pull behavior WRT ALL images used in the build - builder, buildpack packages, lifecycle image, run image

Today we have:

  • always - try to pull, and fail if image is not found in the registry
  • never - never pull
  • if-not-present - only try to pull if the image doesn't exist locally

Proposed solution

We should also have:

  • try-always (or something) - try to pull, fall back to local copy if present, and fail if image is not found in the daemon

This will cover cases where, e.g,. the builder is some local image that only exists in the daemon, but we want to make sure that we have the latest version of all other image inputs.

Describe alternatives you've considered

Do nothing

Additional context

  • This feature should be documented somewhere
@natalieparellano natalieparellano added type/enhancement Issue that requests a new feature or improvement. status/ready Issue ready to be worked on. labels Jul 3, 2024
@natalieparellano natalieparellano added status/discussion-needed Issue or PR that requires in-depth discussion. and removed status/ready Issue ready to be worked on. labels Aug 15, 2024
@natalieparellano
Copy link
Member Author

Also discussed:

  • best-effort
  • try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/discussion-needed Issue or PR that requires in-depth discussion. type/enhancement Issue that requests a new feature or improvement.
Projects
None yet
Development

No branches or pull requests

1 participant