Skip to content
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

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/controller/bundle/bundle_unpacker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ func TestConfigMapUnpacker(t *testing.T) {
defaultUnpackTimeoutSeconds := int64(defaultUnpackDuration.Seconds())

// Custom timeout to override the default cmdline flag ActiveDeadlineSeconds value
//customAnnotationDuration := 2 * time.Minute
//customAnnotationTimeoutSeconds := int64(customAnnotationDuration.Seconds())
customAnnotationDuration := 2 * time.Minute
customAnnotationTimeoutSeconds := int64(customAnnotationDuration.Seconds())

type fields struct {
objs []runtime.Object
Expand All @@ -77,7 +77,7 @@ func TestConfigMapUnpacker(t *testing.T) {
args args
expected expected
}{
/*{
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind XD

description: "NoCatalogSource/NoConfigMap/NoJob/NotCreated/Pending",
fields: fields{},
args: args{
Expand Down Expand Up @@ -397,7 +397,7 @@ func TestConfigMapUnpacker(t *testing.T) {
},
},
},
},*/
},
{
description: "CatalogSourcePresent/ConfigMapPresent/JobPresent/DigestImage/Unpacked",
Copy link
Collaborator

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?

fields: fields{
Expand Down