See:
|
unpacker, err := source.NewDefaultUnpacker(mgr, systemNamespace, filepath.Join(cachePath, "unpack"), (*x509.CertPool)(nil)) |
This likely means a slight refactoring of the ImageRegistry implementation.
Related: it probably makes sense to stop using the composite unpacker and instead just use ImageRegistry directly.