Skip to content

Commit

Permalink
chore: migrate due to controller runtime update
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <[email protected]>
  • Loading branch information
Dominik Rosiek committed Oct 19, 2023
1 parent bfbdafd commit c798ac6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions operator/handler/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,7 @@ var _ = Describe("handler", func() {
Expect(err).ToNot(HaveOccurred())
})

decoder, err := admission.NewDecoder(scheme.Scheme)
It("creates decoder without any errors", func() {
Expect(err).ToNot(HaveOccurred())

})
decoder := admission.NewDecoder(scheme.Scheme)

podExtender := PodExtender{
Client: k8sClient,
Expand Down Expand Up @@ -154,11 +150,7 @@ var _ = Describe("handler", func() {
Expect(err).ToNot(HaveOccurred())
})

decoder, err := admission.NewDecoder(scheme.Scheme)
It("creates decoder without any errors", func() {
Expect(err).ToNot(HaveOccurred())

})
decoder := admission.NewDecoder(scheme.Scheme)

podExtender := PodExtender{
Client: k8sClient,
Expand Down

0 comments on commit c798ac6

Please sign in to comment.