Skip to content

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 force-pushed the 100mik/stricter-caching branch from af0008f to c706c80 Compare October 9, 2024 09:33
@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

@joaopapereira
Copy link
Member

@100mik any update on this?

@joaopapereira
Copy link
Member

@100mik do you think you can add some tests to ensure that we will not have regressions in the future?

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