Skip to content

Commit a85a205

Browse files
committed
use pullCasDir
1 parent ccec483 commit a85a205

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

catalogd/cmd/catalogd/main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,11 @@ func main() {
284284
imagePuller := &imageutil.ContainersImagePuller{
285285
SourceCtxFunc: func(ctx context.Context) (*types.SystemContext, error) {
286286
logger := log.FromContext(ctx)
287-
srcContext := &types.SystemContext{
288-
DockerCertPath: "",
289-
OCICertPath: "",
287+
srcContext := &types.SystemContext{}
288+
logger.Info("pullCasDir", "value", pullCasDir)
289+
if pullCasDir != "" {
290+
srcContext.DockerCertPath = pullCasDir
291+
srcContext.OCICertPath = pullCasDir
290292
}
291293
if _, err := os.Stat(authFilePath); err == nil && globalPullSecretKey != nil {
292294
logger.Info("using available authentication information for pulling image")

0 commit comments

Comments
 (0)