Skip to content

Commit

Permalink
Merge branch 'master' into OCPBUGS-29729
Browse files Browse the repository at this point in the history
  • Loading branch information
bentito authored Mar 4, 2024
2 parents b69936c + 1d12f8f commit b3ab5ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions pkg/controller/registry/reconciler/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,9 +298,10 @@ func Pod(source *operatorsv1alpha1.CatalogSource, name, opmImg, utilImage, img s
Args: []string{"/bin/copy-content", fmt.Sprintf("%s/copy-content", utilitiesPath)},
VolumeMounts: []corev1.VolumeMount{utilitiesVolumeMount},
}, corev1.Container{
Name: "extract-content",
Image: img,
Command: []string{utilitiesPath + "/copy-content"},
Name: "extract-content",
Image: img,
ImagePullPolicy: image.InferImagePullPolicy(img),
Command: []string{utilitiesPath + "/copy-content"},
Args: []string{
"--catalog.from=" + grpcPodConfig.ExtractContent.CatalogDir,
"--catalog.to=" + fmt.Sprintf("%s/catalog", catalogPath),
Expand Down
7 changes: 4 additions & 3 deletions pkg/controller/registry/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,10 @@ func TestPodExtractContent(t *testing.T) {
VolumeMounts: []corev1.VolumeMount{{Name: "utilities", MountPath: "/utilities"}},
},
{
Name: "extract-content",
Image: "image",
Command: []string{"/utilities/copy-content"},
Name: "extract-content",
Image: "image",
ImagePullPolicy: image.InferImagePullPolicy("image"),
Command: []string{"/utilities/copy-content"},
Args: []string{
"--catalog.from=/catalog",
"--catalog.to=/extracted-catalog/catalog",
Expand Down

0 comments on commit b3ab5ef

Please sign in to comment.