Skip to content

Commit 2d2bf11

Browse files
committed
use pullCasDir
1 parent a4d8992 commit 2d2bf11

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

catalogd/cmd/catalogd/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,10 @@ func main() {
270270
unpacker := &source.ContainersImageRegistry{
271271
BaseCachePath: unpackCacheBasePath,
272272
SourceContextFunc: func(logger logr.Logger) (*types.SystemContext, error) {
273-
srcContext := &types.SystemContext{
274-
DockerCertPath: "",
275-
OCICertPath: "",
273+
srcContext := &types.SystemContext{}
274+
if pullCasDir != "" {
275+
srcContext.DockerCertPath = pullCasDir
276+
srcContext.OCICertPath = pullCasDir
276277
}
277278
if _, err := os.Stat(authFilePath); err == nil && globalPullSecretKey != nil {
278279
logger.Info("using available authentication information for pulling image")

0 commit comments

Comments
 (0)