Skip to content

Commit b3ab5ef

Browse files
authored
Merge branch 'master' into OCPBUGS-29729
2 parents b69936c + 1d12f8f commit b3ab5ef

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

pkg/controller/registry/reconciler/reconciler.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,10 @@ func Pod(source *operatorsv1alpha1.CatalogSource, name, opmImg, utilImage, img s
298298
Args: []string{"/bin/copy-content", fmt.Sprintf("%s/copy-content", utilitiesPath)},
299299
VolumeMounts: []corev1.VolumeMount{utilitiesVolumeMount},
300300
}, corev1.Container{
301-
Name: "extract-content",
302-
Image: img,
303-
Command: []string{utilitiesPath + "/copy-content"},
301+
Name: "extract-content",
302+
Image: img,
303+
ImagePullPolicy: image.InferImagePullPolicy(img),
304+
Command: []string{utilitiesPath + "/copy-content"},
304305
Args: []string{
305306
"--catalog.from=" + grpcPodConfig.ExtractContent.CatalogDir,
306307
"--catalog.to=" + fmt.Sprintf("%s/catalog", catalogPath),

pkg/controller/registry/reconciler/reconciler_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,10 @@ func TestPodExtractContent(t *testing.T) {
306306
VolumeMounts: []corev1.VolumeMount{{Name: "utilities", MountPath: "/utilities"}},
307307
},
308308
{
309-
Name: "extract-content",
310-
Image: "image",
311-
Command: []string{"/utilities/copy-content"},
309+
Name: "extract-content",
310+
Image: "image",
311+
ImagePullPolicy: image.InferImagePullPolicy("image"),
312+
Command: []string{"/utilities/copy-content"},
312313
Args: []string{
313314
"--catalog.from=/catalog",
314315
"--catalog.to=/extracted-catalog/catalog",

0 commit comments

Comments
 (0)