-
Notifications
You must be signed in to change notification settings - Fork 62
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
**Explore:** Recursive pulling should be filterable #98
Comments
@ewrenn8 thanks for the issue. After thinking a little bit about this feature I have some questions:
|
|
@ewrenn8 Could you tell me more why kapp-controller would like to only pull repositories? What benefits does it provide to end-users besides the fact that may speed up the pull operation? |
When making packages available to a cluster via a repo, kapp-controller only cares about bundles that are repos, since those are the only ones that will contain package CR yamls. Due to the nature of bundles, each repo's ImagesLock will also reference bundles used by the packages to store their k8s manifests, which kapp-controller has no use for, so we'd like to avoid pulling them and consuming disk space + time for artifacts that will just be thrown away. This problem also scales with the number of packages since each new package adds another bundle that would get pulled, whereas, if we could filter by repo, a new package wouldn't increase the number of artifacts pulled. As for value added to the end user, I would say it just gives them more granular control over imgpkg's pull behavior, which potentially speeds up operations using imgpkg. |
Let's use this story to propose a solution (consider the UX, is there a general way to reference bundles?). Expected outcome:
|
Follow-up implementation stories have been created:
Closing this issue. |
Describe the problem/challenge you have
Looking at the recursive bundle proposal, we realized we may want to selectively pull bundles referenced from the ImagesLock. For kapp-controller's packaging use case, we would like to only pull bundles that we know are repositories, so that any non repo references in the ImagesLock are not pulled (kapp-controller has no use for these).
Describe the solution you'd like
Some type of filterability on recursive bundle pulls. One solution could be allowing users to specify an annotation filter from the command line which will cause imgpkg to only pull bundles in the ImagesLock which have that annotation applied to them. Concretely, I could imagine the annotation for kapp-controller's repository being
kapp-controller.carvel.dev/package-repository
and then selecting on the when recursively pulling.The text was updated successfully, but these errors were encountered: