Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions pkg/controller/deployment/deployment_helper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func TestGetOverrideResourcesFor(t *testing.T) {
},
}

ctx, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithCancel(context.TODO())
defer cancel()

// Create channel to know when the watch has started.
Expand Down Expand Up @@ -857,7 +857,7 @@ func TestGetOverrideSchedulingFor(t *testing.T) {
},
}

ctx, cancel := context.WithCancel(context.Background())
ctx, cancel := context.WithCancel(context.TODO())
defer cancel()

// Create channel to know when the watch has started.
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/istiocsr/certificates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func TestCreateOrApplyCertificates(t *testing.T) {
}
r.ctrlClient = mock
istiocsr := &v1alpha1.IstioCSR{}
if err := r.Get(context.Background(), types.NamespacedName{
if err := r.Get(context.TODO(), types.NamespacedName{
Namespace: testIstioCSR().Namespace,
Name: testIstioCSR().Name,
}, istiocsr); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/istiocsr/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func New(mgr ctrl.Manager) (*Reconciler, error) {
}
return &Reconciler{
ctrlClient: c,
ctx: context.Background(),
ctx: context.TODO(),
eventRecorder: mgr.GetEventRecorderFor(ControllerName),
log: ctrl.Log.WithName(ControllerName),
scheme: mgr.GetScheme(),
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/istiocsr/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ func TestReconcile(t *testing.T) {
}
r.ctrlClient = mock
istiocsr := testIstioCSR()
result, err := r.Reconcile(context.Background(),
result, err := r.Reconcile(context.TODO(),
ctrl.Request{
NamespacedName: types.NamespacedName{Name: istiocsr.GetName(), Namespace: istiocsr.GetNamespace()},
},
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/istiocsr/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type CertificateTweak func(*x509.Certificate)

func testReconciler(t *testing.T) *Reconciler {
return &Reconciler{
ctx: context.Background(),
ctx: context.TODO(),
eventRecorder: record.NewFakeRecorder(100),
log: testr.New(t),
scheme: library.Scheme,
Expand Down
2 changes: 1 addition & 1 deletion pkg/operator/informers/externalversions/factory.go

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

Loading