You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because imgRef is just a parsed.spec.source.image.ref. We only resolve the ref below: after checking the cache. So if this field contains a ref with a tag - we only write into the filesystem cache and never read from it.
We have test cases for both digest and tag image refs, but the test is somehow green. The test is very complex and has a lot of parameters so I suspect there is a bug within the test somewhere.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
ClusterCatalog
which uses an image ref with a tagExpected result
On a second poll (after 5 seconds in our example) you should see a log line (code) saying that we hit the cache containing the following string:
Actual results
No log line/cache hit.
Analysis
We never enter this condition because
isDigest
is alwaysfalse
:catalogd/internal/source/image_registry_client.go
Lines 80 to 88 in 4323184
This is because
imgRef
is just a parsed.spec.source.image.ref
. We only resolve the ref below: after checking the cache. So if this field contains a ref with a tag - we only write into the filesystem cache and never read from it.We have test cases for both digest and tag image refs, but the test is somehow green. The test is very complex and has a lot of parameters so I suspect there is a bug within the test somewhere.
The text was updated successfully, but these errors were encountered: