-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OCPBUGS-4955: Set ImagePullPolicy of bundle unpacker to "IfNotPresent" for image digests #2908
OCPBUGS-4955: Set ImagePullPolicy of bundle unpacker to "IfNotPresent" for image digests #2908
Conversation
@dtfranz: This pull request references Jira Issue OCPBUGS-4955, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/jira refresh |
@dtfranz: This pull request references Jira Issue OCPBUGS-4955, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Hi @dtfranz , I cannot test this PR since it's for upstream, as follows: I will test it once it is submitted downstream: https://github.com/openshift/operator-framework-olm |
The CI test fail at: ? github.com/operator-framework/operator-lifecycle-manager/pkg/api/wrappers/wrappersfakes [no test files]
--- FAIL: TestConfigMapUnpacker (0.61s)
--- FAIL: TestConfigMapUnpacker/CatalogSourcePresent/ConfigMapPresent/JobPresent/DigestImage/Unpacked (0.20s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x28ddf46]
goroutine 115 [running]:
testing.tRunner.func1.2({0x2b025e0, 0x4[32](https://github.com/operator-framework/operator-lifecycle-manager/actions/runs/3708381393/jobs/6285883596#step:5:33)1ba0})
/opt/hostedtoolcache/go/1.19.4/x64/src/testing/testing.go:1396 +0x[37](https://github.com/operator-framework/operator-lifecycle-manager/actions/runs/3708381393/jobs/6285883596#step:5:38)2
testing.tRunner.func1() |
Thanks Jian, yes, this test passed before I pushed but that was a fluke. I've updated the test so it actually passes now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work on this @dtfranz, had one question and one suggestion, but this looks good otherwise.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene, dtfranz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…r use, implement in bundle unpacker, add tests Signed-off-by: Daniel Franz <dfranz@redhat.com>
Signed-off-by: Daniel Franz <dfranz@redhat.com>
Signed-off-by: Daniel Franz <dfranz@redhat.com>
Signed-off-by: Daniel Franz <dfranz@redhat.com>
Signed-off-by: Daniel Franz <dfranz@redhat.com>
c2cb4c8
to
2a5c923
Compare
@@ -398,7 +399,7 @@ func TestConfigMapUnpacker(t *testing.T) { | |||
}, | |||
}, | |||
{ | |||
description: "CatalogSourcePresent/ConfigMapPresent/JobPresent/Unpacked", | |||
description: "CatalogSourcePresent/ConfigMapPresent/JobPresent/DigestImage/Unpacked", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe double-check if tests are needed for non-digest images too?
@@ -77,7 +77,7 @@ func TestConfigMapUnpacker(t *testing.T) { | |||
args args | |||
expected expected | |||
}{ | |||
{ | |||
/*{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this test no longer needed? maybe we should either remove, or if there's something we need to track, create an issue and tag it here?
@@ -77,7 +77,7 @@ func TestConfigMapUnpacker(t *testing.T) { | |||
args args | |||
expected expected | |||
}{ | |||
/*{ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nevermind XD
/lgtm |
@dtfranz: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-4955 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@dtfranz: cannot checkout In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Description of the change:
Captures the
imagePullPolicy
selection logic into a func, then utilizes it both in its original location as well as in the bundle unpacker. This allows users to setimagePullPolicy
toIfNotPresent
by supplying an image digest rather than a tag.Motivation for the change:
OCPBUGS-4955