carvel-dev / carvel-dev/kapp-controller
Support image pull cache for App CR to archieve 'imagePullPolicy: IfNotPresent'
- Dominant language
- Go
- Stars
- 323
- Forks
- 127
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 6
Description
**Describe the problem/challenge you have**
Hello, is there an option similar to IfNotPresent in K8s for the image url used in fetch ?
https://carvel.dev/kapp-controller/docs/v0.48.x/packaging/
```
# App template used to create the underlying App CR.
# See 'App CR Spec' docs for more info
template:
spec:
fetch:
- imgpkgBundle:
image: registry.tkg.vmware.run/tkg-fluent-bit@sha256:...
```
The reason for this feature is:
- the image will be pulled so many times, e.g. 1403805 downloads shown in Harbor
- when image registry goes offline temporarily, kapp-controller reports error when reconciling App, but it’s not needed since the tag is immutable
This is discussed in https://kubernetes.slack.com/archives/CH8KCCKA5/p1700836690956389
**Describe the solution you'd like**
vendir v0.36.0 supports [Only run sync for stable versions, if vendir.yaml has changed since last sync · Issue #278 · carvel-dev/vendir](https://github.com/carvel-dev/vendir/issues/278). kapp-controller can utilize it.
**Anything else you would like to add:**
[Additional information that will assist in solving the issue.]
---
Vote on this request
This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.
👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"
We are also happy to receive and review Pull Requests if you want to help working on this issue.
Contributor guide
Assessment
This issue has not been assessed yet.