Skip to content

Commit

Permalink
tweak envtest options
Browse files Browse the repository at this point in the history
  • Loading branch information
mszadkow committed Jan 16, 2025
1 parent 413abf9 commit 2bf5723
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/integration/framework/framework.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ func (f *Framework) Init() *rest.Config {
f.testEnv = &envtest.Environment{
CRDDirectoryPaths: append(f.DepCRDPaths, f.CRDPath),
ErrorIfCRDPathMissing: true,
CRDInstallOptions: envtest.CRDInstallOptions{
MaxTime: 120 * time.Second,
CleanUpAfterUse: true,
},
ControlPlaneStartTimeout: 30 * time.Second,
}
if len(f.WebhookPath) > 0 {
f.testEnv.WebhookInstallOptions.Paths = []string{f.WebhookPath}
Expand Down

0 comments on commit 2bf5723

Please sign in to comment.