Skip to content

Commit

Permalink
Merge pull request #711 from openshift-cherrypick-robot/cherry-pick-7…
Browse files Browse the repository at this point in the history
…09-to-release-4.15

[release-4.15] OCPBUGS-30193: Synchronize From Upstream Repositories
  • Loading branch information
openshift-merge-bot[bot] committed Mar 5, 2024
2 parents 9537a6a + d4e87b7 commit cb0c5f2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
Expand Up @@ -285,9 +285,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
Expand Up @@ -277,7 +277,7 @@ func TestPodExtractContent(t *testing.T) {
ObjectMeta: metav1.ObjectMeta{
GenerateName: "test-",
Namespace: "testns",
Labels: map[string]string{"olm.pod-spec-hash": "6AsUxiAHW383luxWxmVVATFBeHXKNIX0HXrP5g", "olm.managed": "true"},
Labels: map[string]string{"olm.pod-spec-hash": "2AHzz8IDqQLwPsDyu4UjUmnROr4E59PMKm9OCm", "olm.managed": "true"},
Annotations: map[string]string{"cluster-autoscaler.kubernetes.io/safe-to-evict": "true"},
},
Spec: corev1.PodSpec{
Expand All @@ -300,9 +300,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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb0c5f2

Please sign in to comment.