Skip to content

Commit

Permalink
Avoid shallow copies of CRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
acumino committed Jul 19, 2022
1 parent d219d44 commit ea5952a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/testmachinery/controller/ttl/controller_suite_test.go
Expand Up @@ -69,7 +69,7 @@ var _ = BeforeSuite(func() {
Status: &v1.CustomResourceSubresourceStatus{},
}
testenv = &envtest.Environment{
CRDs: []client.Object{crd},
CRDs: []*v1.CustomResourceDefinition{crd},
}

restConfig, err = testenv.Start()
Expand Down
2 changes: 1 addition & 1 deletion pkg/testmachinery/controller/watch/watch_test.go
Expand Up @@ -73,7 +73,7 @@ var _ = BeforeSuite(func() {
Status: &v1.CustomResourceSubresourceStatus{},
}
testenv = &envtest.Environment{
CRDs: []client.Object{crd},
CRDs: []*v1.CustomResourceDefinition{crd},
}

restConfig, err = testenv.Start()
Expand Down

0 comments on commit ea5952a

Please sign in to comment.