Skip to content

Commit

Permalink
Fix Unit tests after bumping to K8s 1.23
Browse files Browse the repository at this point in the history
For a Fake k8s client we must now
explicitly register all resouces
we expect to list in the scheme.

Otherwise we'll run into
kubernetes/client-go#914

Signed-off-by: Andrew Stoycos <astoycos@redhat.com>
  • Loading branch information
Andrew Stoycos committed May 11, 2022
1 parent 8b3f153 commit 4aa56c0
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func newTestDriver() *testDriver {

t.syncerScheme = runtime.NewScheme()
Expect(submarinerv1.AddToScheme(t.syncerScheme)).To(Succeed())
Expect(corev1.AddToScheme(t.syncerScheme)).To(Succeed())

t.localClient = fake.NewDynamicClient(t.syncerScheme)
t.brokerClient = fake.NewDynamicClient(t.syncerScheme)
Expand Down

0 comments on commit 4aa56c0

Please sign in to comment.