Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
Use NewDynamicRESTMapper instead of NewDiscoveryRESTMapper (Ref: kubernetes-sigs/controller-runtime#2611)
  • Loading branch information
Neo2308 committed May 3, 2024
1 parent eb14740 commit 392aae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/ansible/handler/logging_enqueue_owner_test.go
Expand Up @@ -51,7 +51,7 @@ var _ = Describe("Eventhandler", func() {

httpClient, err := rest.HTTPClientFor(cfg)
Expect(err).ShouldNot(HaveOccurred())
mapper, err = apiutil.NewDiscoveryRESTMapper(cfg, httpClient)
mapper, err = apiutil.NewDynamicRESTMapper(cfg, httpClient)
Expect(err).ShouldNot(HaveOccurred())
})

Expand Down

0 comments on commit 392aae0

Please sign in to comment.