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

Stricter caching for imgpkg bundles #401

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

100mik
Copy link
Contributor

@100mik 100mik commented Oct 9, 2024

Use a fully-qualified reference as key for a cache rather than the digest.

Resolves #399 and eventually carvel-dev/kapp-controller#1603

… reference rather than just digest

Signed-off-by: Soumik Majumder <[email protected]>
@100mik 100mik marked this pull request as draft October 9, 2024 09:34
@100mik 100mik marked this pull request as ready for review October 9, 2024 09:41
@100mik
Copy link
Contributor Author

100mik commented Oct 9, 2024

Confirmed that we will still only be caching artifacts with digest references as imgpkg code decides wether or not it a bundle is cacheable, and that remains unchanged.

Copy link
Member

@praveenrewar praveenrewar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to have a test added for this.

Copy link
Member

@joaopapereira joaopapereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THe change looks good, but I agree with @praveenrewar we should have a test to ensure the behavior is what we expect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Account for nested imgpkg bundles in the caching logic
3 participants