Skip to content
This repository was archived by the owner on Nov 18, 2020. It is now read-only.

Commit 3555bb3

Browse files
committed
pkg/controller/memcached/memcached_controller.go: remove fake client hack
1 parent a8a07b0 commit 3555bb3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

memcached-operator/pkg/controller/memcached/memcached_controller.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,6 @@ func (r *ReconcileMemcached) Reconcile(request reconcile.Request) (reconcile.Res
140140
listOps := &client.ListOptions{
141141
Namespace: memcached.Namespace,
142142
LabelSelector: labelSelector,
143-
// HACK: due to a fake client bug, ListOptions.Raw.TypeMeta must be
144-
// explicitly populated for testing.
145-
//
146-
// See https://github.com/kubernetes-sigs/controller-runtime/issues/168
147-
Raw: &metav1.ListOptions{
148-
TypeMeta: metav1.TypeMeta{
149-
Kind: "Memcached",
150-
APIVersion: cachev1alpha1.SchemeGroupVersion.Version,
151-
},
152-
},
153143
}
154144
err = r.client.List(context.TODO(), listOps, podList)
155145
if err != nil {

0 commit comments

Comments
 (0)